windows自动以管理员身份运行bat文件

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

参考https://www.zhihu.com/question/34541107

posted @ 2023-12-25 12:42  miyanyan  阅读(99)  评论(0编辑  收藏  举报