接下来,只需要在.bat脚本中添加一下代码 即可实现 以管理员身份运行
::强制获取管理员运行权限 %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit