Add open cmd to the right-click menu under win10

Win10 right-click menu to add open_cmd shortcut

Since the change to win10, the cmd in the shift + right-click menu has been cached by powershell, and it is enough to change it, but there are many changes in powershell. The first is the problem of slow startup, and there are still some things that cannot be loaded. I also saw that some webpages have similar problems on the Internet. There is no way, replace powershell with cmd.

The registry address where the right-click menu opens powershell is:
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd

Here's how to do it.
First create a new text document and enter the following content:

Windows Registry Editor Version 5.00

02[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
03@="OpenCmdHere"
04"Icon"="cmd.exe"
05[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
06@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
07[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]

08@="OpenCmdHere"
09"Icon"="cmd.exe"
10[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
11@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
12[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]

13@="OpenCmdHere"
14"Icon"="cmd.exe"
15[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
16@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
17[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]

18@="OpenCmdHere"
19"Icon"="cmd.exe"
20[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
21@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

Save as xxx.reg, note that it must be at the end of reg.
The above @="OpenCmdHere"indicates the name displayed by the right-click menu. It was originally 在此处打开命令行, but it will be garbled in Chinese, so it is in English.

Then double-click xxx.regto import reg into the registry, and at the same time
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell
, you can see the imported registry item in . In any folder, hold down shift+mouse mail, and you should be able to see OpenCmdHerethe options.

Reference:
Add 'Open cmd' to the right-click menu under win10

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324687434&siteId=291194637