右鍵新增開啟命令列視窗,管理員命令列視窗

2021-10-23 05:43:19 字數 1301 閱讀 8647

windows registry editor version 5.00

; 將此內容儲存為***.reg,unicode編碼(bin以ff fe打頭)

; 若原先有,先刪除原來的

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

[-hkey_classes_root\directory\background\shell\runas]

[-hkey_classes_root\directory\background\shell\powershelladmin]

; 1.右鍵:命令列

[hkey_classes_root\directory\background\shell\opencmdhere]

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

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

@="cmd.exe -noexit -command set-location -literalpath \"%v\"" 

; 2.右鍵:命令列(管理員)

[hkey_classes_root\directory\background\shell\runas]

@="在此處開啟命令列視窗(管理員)"

"showbasedonvelocityid"=dword:00639bc8

[hkey_classes_root\directory\background\shell\runas\command]

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

; 3.shift+右鍵:powershell(管理員)

[hkey_classes_root\directory\background\shell\powershelladmin]

@="在此處開啟 powershell 視窗(管理員)"

"extended"=""

[hkey_classes_root\directory\background\shell\powershelladmin\command]

@="\"c:\\windows\\system32\\windowspowershell\\v1.0\\powershell.exe\" -windowstyle hidden -command $stpath = pwd; start-process powershell -argumentlist \\\"-noexit\\\", \\\"-command set-location -literalpath '%v'\\\" -verb runas"

右鍵管理員身份開啟 命令列cmd

新增到登錄檔 將下面命令儲存為reg檔案 windows registry editor version 5.00 hkey classes root directory shell runas hkey classes root directory shell runas open command...

右鍵管理員身份開啟 命令列cmd

新建登錄檔 reg 檔案輸入命令 windows registry editor version 5.00 hkey classes root directory shell runas hkey classes root directory shell runas open command win...

新增右鍵開啟命令列

1 新建txt檔案並重命名為 新增右鍵開啟命令列.reg 2 複製以下 windows registry editor version 5.00 hkey classes root directory shell opencmdhere 在此處開啟命令視窗 icon cmd.exe hkey cla...