@toc
新建文本文件,将文件后缀改为reg
打开该文件
使用程序开发工具或Notepad++,将字符集编码改为ANSI编码
将以下代码复制到文件中保存
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="命令提示符(管理员)"
"icon"="C:\\Windows\\System32\\shell32.dll,24"
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
双击运行即可