右鍵選單在當前目錄下開啟cmd

2022-09-11 17:09:22 字數 892 閱讀 9265

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

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

鍵值名稱:showbasedonvelocityid(顯式標識)、hidebasedonvelocityid(隱式標識)

鍵值:639bc8(十六進製制)

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

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

windows registry editor version 5.00

[hkey_classes_root\directory\background\shell\open cmd as normal]

"showbasedonvelocityid"=dword:00639bc8

[hkey_classes_root\directory\background\shell\open cmd as normal\command]

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

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

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

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

出  處:

win10 在當前目錄下 開啟cmd

windows7 按住 shift 鍵 右鍵 就有該選項。windows10 執行下面的 登錄檔檔案 該登錄檔檔案內容如下 windows registry editor version 5.00 hkey classes root directory shell runas open cmd he...

win10 在當前目錄下 開啟cmd

windows7 按住 shift 鍵 右鍵 就有該選項。windows10 執行下面的 登錄檔檔案 該登錄檔檔案內容如下 windows registry editor version 5.00 hkey classes root directory shell runas open cmd he...

新增右鍵選單 在vscode中開啟

建立乙個文字檔案,寫入如下的文字 windows registry editor version 5.00 hkey classes root shell vscode open with code icon c program files x86 microsoft vs code code.ex...