标签:admin 脚本 格式 windows shell 一个 rect pen win10
1.在网上找了好多发现都不能运行,最后找到一个靠谱的记下来,方便以后使用.
2.新建一个 .reg格式的脚本
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Open cmd here as Admin" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" [-HKEY_CLASSES_ROOT\Directory\Background\shell\runas] [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] @="Open cmd here as Admin" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] @="cmd.exe /s /k pushd \"%V\"" [-HKEY_CLASSES_ROOT\Drive\shell\runas] [HKEY_CLASSES_ROOT\Drive\shell\runas] @="Open cmd here as Admin" "HasLUAShield"="" [HKEY_CLASSES_ROOT\Drive\shell\runas\command]
3. 保存运行,右键就可以发现多了一个open cmd here as admin
标签:admin 脚本 格式 windows shell 一个 rect pen win10
原文地址:https://www.cnblogs.com/Triomphe/p/9131746.html