Windows10右鍵新增「在此處開啟命令視窗」

2021-09-01 13:21:47 字數 1320 閱讀 3550

由於現在win10預設右鍵只有powershell,所以為了以後方便使用就把右鍵新增「在此處開啟命令視窗」的**分享出來。(#.#)

第一步:新建乙個txt檔案,命名為cmdhere.txt

第二步:重點(要用記事本開啟,不要用notepad開啟),輸入如下**,

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\""

第三步:重點(儲存時,不要按ctrl+s直接儲存,要用記事本:檔案==》另存為,然後選擇如圖編碼為:unicode 否則將檔案改為reg格式時,執行檔案時裡面有中文會出現亂碼)

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

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

Windows10右鍵新增「在此處開啟命令視窗」

第一步 新建乙個txt檔案,命名為opencmdhere.txt 第二步 在檔案中輸入如下 並儲存 windows registry editor version 5.00 hkey classes root directory shell opencmdhere 在此處開啟命令視窗 icon cm...

Windows10右鍵新增「在此處開啟命令視窗」

第1步 新建乙個txt檔案,命名為opencmdhere.txt 注意該檔案的格式一定要是ansi的編碼方式 第2步 在檔案中輸入如下 並儲存 windows registry editor version 5.00 hkey classes root directory shell opencmd...

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

今天跑 時用到了powershell,有乙個環境變數死活都找不到,無奈只好重新回到cmd命令列測試,結果立馬就跑通了。由於現在win10預設右鍵只有powershell,所以為了以後方便使用就把右鍵新增 在此處開啟命令視窗 的 分享出來。第乙個是在 桌面 資料夾視窗中 選中資料夾上 直接點選右鍵,顯...