win10如何打開cmd命令行窗口?1.新建一個.reg格式的文件編輯,寫入以下内容,保存點擊運行即可,今天小編就來聊一聊關于win10如何打開cmd命令行窗口?接下來我們就一起去研究一下吧!
1.新建一個.reg格式的文件編輯,寫入以下内容,保存點擊運行即可。
Windows Registry Editor Version 5.00
; 若原先有,先删除原來的
[-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 RunA
更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!