WIN10下右鍵新增選項「CmdHere」

2021-10-06 05:37:31 字數 1560 閱讀 7554

由於最近使用cmd比較多,就想在某個資料夾下右鍵開啟cmd,這樣就省事多了。win10預設可以「shift+右鍵」開啟cmd,但只能開啟powershell。於是就多方查詢,自己整了乙個。

首先是新建乙個reg_cmdhere.reg文件,右鍵,用notepad++開啟,輸入

windows registry editor version 5.00

[hkey_classes_root\*\shell\cmdhere]

@="cmd&here"

[hkey_classes_root\*\shell\cmdhere\command]

@="\"c:\\windows\\system32\\cmd.exe\" "

[hkey_classes_root\folder\shell\cmdhere]

@="cmd&here"

[hkey_classes_root\folder\shell\cmdhere\command]

@="\"c:\\windows\\system32\\cmd.exe\""

[hkey_local_machine\software\classes\directory\background\shell\cmd_here]

@="在此處開啟命令列"

"icon"="cmd.exe"

[hkey_local_machine\software\classes\directory\background\shell\cmd_here\command]

@="\"c:\\windows\\system32\\cmd.exe\""

[hkey_local_machine\software\classes\folder\shell\cmdprompt]

@="在此處開啟命令列"

[hkey_local_machine\software\classes\folder\shell\cmdprompt\command]

@="\"c:\\windows\\system32\\cmd.exe\" \"cd %1\""

[hkey_local_machine\software\classes\directory\shell\cmd_here]

@="在此處開啟命令列"

"icon"="cmd.exe"

[hkey_local_machine\software\classes\directory\shell\cmd_here\command]

@="\"c:\\windows\\system32\\cmd.exe\""

然後雙擊就註冊好了。在資料夾中右鍵和選中乙個檔案右鍵,都有cmdhere選項了。

如果要撤銷呢,怎麼辦,可以參考如下**

windows registry editor version 5.00

[-hkey_local_machine\software\classes\directory\shell\cmd_here]

[-hkey_local_machine\software\classes\directory\shell\cmd_here\command]

win10右鍵新增cmd

win10右鍵都是什麼powershell.不是cmd,而我的powershell不知道怎麼回事,就是無法用.只能要用cmd.新建 reg格式的文字 裡面輸入 windows registry editor version 5.00 hkey local machine software class...

win10下右鍵選單新增「開啟cmd」

早期版本的win10是可以在資料夾的左上角開啟cmd的,更新後發現現在只有powershell能用了。這不方便。通過修改登錄檔,可以實現這個功能。具體做法 新建乙個.reg檔案win10 add cmd mouse right click.reg,內容如下 windows registry edit...

win10下右鍵選單新增 「開啟cmd」

最近使用cmd比較多,就想在某個資料夾下右鍵開啟cmd,這樣不用每次都在預設情況下切換目錄。無奈win10 1703版本下shift 右鍵不能開啟cmd,只能開啟powershell。好,那就自己整乙個吧。首先,在桌面新建乙個文字文件。windows registry editor version ...