Win10下如何为批处理文件自动添加管理员权限

如题所述

%1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

脚本开头加上这段代码,即可实现在运行时提示提权窗口

温馨提示:答案为网友推荐,仅供参考
相似回答