win10 shift+鼠标右键,默认没有在当前文件夹下打开cmd功能
新建一个reg结尾的注册文件:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryshell unas] @="Open cmd here as Admin" "HasLUAShield"="" [HKEY_CLASSES_ROOTDirectoryshell unascommand] @="cmd.exe /s /k pushd "%V"" [-HKEY_CLASSES_ROOTDirectoryBackgroundshell unas] [HKEY_CLASSES_ROOTDirectoryBackgroundshell unas] @="Open cmd here as Admin" "HasLUAShield"="" [HKEY_CLASSES_ROOTDirectoryBackgroundshell unascommand] @="cmd.exe /s /k pushd "%V"" [-HKEY_CLASSES_ROOTDriveshell unas] [HKEY_CLASSES_ROOTDriveshell unas] @="Open cmd here as Admin" "HasLUAShield"="" [HKEY_CLASSES_ROOTDriveshell unascommand]
双击运行 ,即将该命令注册到注册表。
然后 在当前文件夹下右键 就可以看到 “Open cmd here as Admin” 。