如何让bat文件直接以管理员权限打开
%1 %2
ver|find "5.">nul&&goto :st
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :st","","runas",1)(window.close)&goto :eof
:st
copy "%~0" "%windir%\system32\"
d:
cd D:\a_package\mysql-5.7.27-win32\mysql-5.7.27-win32\bin
net stop mysql
pause
网友评论