前言
Windows右键在当前位置打开CMD命令行或PowerShell命令行
OpenCMDHere
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] @="OpenCmdHere" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe\"" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere] @="OpenCmdHere" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe\"" [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere] @="OpenCmdHere" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe\"" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere] @="OpenCmdHere" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe\""
|
OpenPowerShellHere
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\OpenPowershellHere] @="OpenPowershellHere" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\Directory\shell\OpenPowershellHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process powershell.exe\"" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPowershellHere] @="OpenPowershellHere" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPowershellHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process powershell.exe\"" [HKEY_CLASSES_ROOT\Drive\shell\OpenPowershellHere] @="OpenPowershellHere" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\Drive\shell\OpenPowershellHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process powershell.exe\"" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenPowershellHere] @="OpenPowershellHere" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenPowershellHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process powershell.exe\""
|
完成
参考文献
CSDN——weixin_33882452