需要修改注册表内容,新建文件,后缀名改为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]
点击运行就可以看见