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

2022-06-15 14:36:10 字數 2464 閱讀 9178

其實一般有乙個快捷的辦法,就是在需要定位的資料夾的空白處按住shift+ 滑鼠右鍵,就會有乙個選項 ——在此處開啟命令視窗

第一步:新建乙個txt檔案,命名為opencmdhere.txt,注意設定編碼格式為ansi

第二步:在檔案中輸入如下**,並儲存

原始版本:

這種是先呼叫powershell,通過powershell開啟cmd

windows registry editor version 5.00

[hkey_classes_root\directory\shell\opencmdhere]

@="在此處開啟命令視窗""

icon

"="cmd.exe

"[hkey_classes_root\directory\shell\opencmdhere\command]

@="powershell -windowstyle hidden -command \"start-process cmd.exe -argumentlist '/s,/k, pushd,%v' -verb runas\"

"[hkey_classes_root\directory\background\shell\opencmdhere]

@="在此處開啟命令視窗""

icon

"="cmd.exe

"[hkey_classes_root\directory\background\shell\opencmdhere\command]

@="powershell -windowstyle hidden -command \"start-process cmd.exe -argumentlist '/s,/k, pushd,%v' -verb runas\"

"[hkey_classes_root\drive\shell\opencmdhere]

@="在此處開啟命令視窗""

icon

"="cmd.exe

"[hkey_classes_root\drive\shell\opencmdhere\command]

@="powershell -windowstyle hidden -command \"start-process cmd.exe -argumentlist '/s,/k, pushd,%v' -verb runas\"

"[hkey_classes_root\libraryfolder\background\shell\opencmdhere]

@="在此處開啟命令視窗""

icon

"="cmd.exe

"[hkey_classes_root\libraryfolder\background\shell\opencmdhere\command]

@="powershell -windowstyle hidden -command \"start-process cmd.exe -argumentlist '/s,/k, pushd,%v' -verb runas\"

"

新版:

windows registry editor version 5.00[hkey_classes_root\directory\shell\opencmdhere]

@="在此處開啟命令視窗"

"icon"="cmd.exe"[hkey_classes_root\directory\shell\opencmdhere\command

]@="cmd.exe /s /k pushd \"%v\""[hkey_classes_root\directory\background\shell\opencmdhere]

@="在此處開啟命令視窗"

"icon"="cmd.exe"[hkey_classes_root\directory\background\shell\opencmdhere\command

]@="cmd.exe /s /k pushd \"%v\""[hkey_classes_root\drive\shell\opencmdhere]

@="在此處開啟命令視窗"

"icon"="cmd.exe"[hkey_classes_root\drive\shell\opencmdhere\command

]@="cmd.exe /s /k pushd \"%v\""[hkey_classes_root\libraryfolder\background\shell\opencmdhere]

@="在此處開啟命令視窗"

"icon"="cmd.exe"[hkey_classes_root\libraryfolder\background\shell\opencmdhere\command

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

第三步:更改檔案字尾名為reg,彈出的提示點確認。

第四步:雙擊opencmdhere.reg檔案執行,彈出的提示點確認,修改登錄檔就大功告成了!

參考**:

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

通過新增登錄檔項,實現右擊 在此處開啟命令列功能 登錄檔位置 hkey classes root directory background shell win10系統用標識右鍵選單開啟命令列的鍵,鍵值639bc8 十六進製制 showbasedonvelocityid 顯示標識 hidebasedo...

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

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

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

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