windows 10 右键添加在本文件夹打开cmd 或prowershell
在此处打开OpenPowershellHere右键
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\""
在此处打开命令窗口右键
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\""
以上代码.保存为注册表文件 .reg 双击运行就可以了...