win10 windows10 shift 右键 在此处打开命令窗口 cmd

win10 是打开的powershell,但是不喜欢用,感觉权限没有cmd高

新建一个txt

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellcmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTDirectoryshellcmdpromptcommand]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOTDirectoryBackgroundshellcmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTDirectoryBackgroundshellcmdpromptcommand]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOTDriveshellcmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTDriveshellcmdpromptcommand]
@="cmd.exe /s /k pushd "%V""

保存后改称reg后缀,运行

这样右键就有cmd和powershell两个了

感谢https://www.cnblogs.com/7explore-share/p/9038594.html

原文地址:https://www.cnblogs.com/zonglonglong/p/12663434.html