复制代码
- @echo off
- setlocal enableDelayedExpansion
- cd /d %~dp0
- bcdedit >nul 2>nul
- if errorlevel 1 mshta vbscript:createobject("shell.application").shellexecute("%~0","goto :RUNAS","","runas",1)(window.close)&&exit/b
- :RUNAS
- bcdedit /timeout 7
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |