Closed xiaokaixuan closed 5 years ago
@echo off
:runas
if not {%1}=={} goto :main
title 正在请求管理员权限...
mshta VBScript:Execute("CreateObject(""Shell.Application"").ShellExecute ""%~0"", ""::"", Null, ""runas"", 1: Close")
exit
:main
title 正在以管理员运行...
pause