Window 下bat管理员身份运行文件

@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
"cmd /c Start 运行程序的名称.exe"

posted @ 2022-02-15 15:33  LuoCore  阅读(42)  评论(0编辑  收藏  举报