Windows Registry Editor Version 5.00
; Add "Open CMD Here" to right-click menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_here]
@="在此处打开命令提示符"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
; Add "Open CMD Here as Administrator" to right-click menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_admin]
@="在此处打开命令提示符(管理员)"
"Icon"="cmd.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_admin\command]
@="powershell.exe -WindowStyle Hidden -Command \"Start-Process cmd.exe -ArgumentList '/s /k pushd \"\"%V\"\"' -Verb RunAs\""
; Add "Open PowerShell Here" to right-click menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\pwsh_here]
@="在此处打开 PowerShell"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\pwsh_here\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
; Add "Open PowerShell Here as Administrator" to right-click menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\pwsh_admin]
@="在此处打开 PowerShell(管理员)"
"Icon"="powershell.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\pwsh_admin\command]
@="powershell.exe -WindowStyle Hidden -Command \"Start-Process powershell.exe -ArgumentList '-NoExit -Command Set-Location -LiteralPath \"\"%V\"\"' -Verb RunAs\""
win10添加右键打开cmd和powershell窗口
最新推荐文章于 2025-05-25 17:54:27 发布