Win10新增右鍵在此處開啟命令列

2021-08-25 22:26:01 字數 1531 閱讀 4308

通過新增登錄檔項,實現右擊「在此處開啟命令列功能」

登錄檔位置:hkey_classes_root\directory\background\shell\

win10系統用標識右鍵選單開啟命令列的鍵,鍵值639bc8(十六進製制):

showbasedonvelocityid(顯示標識)

hidebasedonvelocityid(隱藏標識)

效果直接右鍵即可看到該選項,無需同時按住shift鍵。當然,按住右鍵也能顯示,並且不影響右鍵開啟powershell的功能。

方法一:

一鍵自動匯入設定。將以下內容儲存成reg檔案,如a.reg,雙擊該檔案自動匯入設定。

windows registry editor version 5.00

[hkey_classes_root\directory

\background

\shell

\opencmdhere

]"showbasedonvelocityid"=dword:00639bc8

[hkey_classes_root\directory

\background

\shell

\opencmdhere

\command

]@="cmd.exe /s /k pushd \"

%v\""

方法二:手工設定

1. 我們用regedit或者其他登錄檔編輯器定位到hkey_classes_root\directory\background\shell\處,右擊新建項「opencmdhere」,並在該項下,右擊新建項「command」。

2.我們在右邊opencmdhere項下,右擊新建reg_dword型別整數值。設定鍵名為「showbasedonvelocityid」,鍵值為「639bc8」。

3.進入command項下,設定鍵值為cmd.exe /s /k pushd 「%v」

另外,修改 win10 cmd 預設編碼為 utf-8 可以修改登錄檔裡:[hkey_local_machine\software\microsoft\command processor\autorun] 的值為 chcp 65001

win10右鍵新增在此處開啟命令視窗

1 在桌面新建文字檔案,可以自定義命名。2 開啟檔案複製以下內容。windows registry editor version 5.00 hkey classes root directory shell opencmdhere 在此處開啟命令提示符 icon cmd.exe hkey class...

Win10新增右鍵在此處開啟命令列

其實一般有乙個快捷的辦法,就是在需要定位的資料夾的空白處按住shift 滑鼠右鍵,就會有乙個選項 在此處開啟命令視窗 第一步 新建乙個txt檔案,命名為opencmdhere.txt,注意設定編碼格式為ansi 第二步 在檔案中輸入如下 並儲存 原始版本 這種是先呼叫powershell,通過pow...

Win10右擊新增「在此處開啟命令視窗」

桌面新建txt文件,拷貝如下 windows registry editor version 5.00 hkey classes root directory shell opencmdhere 在此處開啟命令提示符 icon cmd.exe hkey classes root directory ...