Windows系统-批处理脚本-切换到管理员身份
@echo off REM Get Admin Privileges %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
批处理脚本切换到管理员身份
@echo off REM Get Admin Privileges %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
批处理脚本切换到管理员身份