- 帖子
- 18
- 积分
- 31
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2020-7-7
|
2楼
发表于 2021-5-24 13:12
| 只看该作者
if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
bcdedit >nul
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
:UACPrompt
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
exit /B
:UACAdmin
cd /d "%~dp0" |
|