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

2022-08-09 04:33:07 字數 1855 閱讀 8114

今天跑**時用到了powershell,有乙個環境變數死活都找不到,無奈只好重新回到cmd命令列測試,結果立馬就跑通了。-_-|| 

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

第乙個是在 桌面 / 資料夾視窗中 / 選中資料夾上 直接點選右鍵,顯示「在此處開啟命令視窗」選項,如圖: 

第二個是在 桌面 / 資料夾視窗中 / 選中資料夾上 按住shift鍵點選右鍵,同時顯示「在此處開啟命令視窗」和「在此處開啟powershell視窗」兩個選項,如圖: 

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

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

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

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

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

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

由於現在win10預設右鍵只有powershell,所以為了以後方便使用就把右鍵新增 在此處開啟命令視窗 的 分享出來。第一步 新建乙個txt檔案,命名為cmdhere.txt 第二步 重點 要用記事本開啟,不要用notepad開啟 輸入如下 windows registry editor vers...

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...