- 帖子
- 349
- 积分
- 508
- 技术
- 33
- 捐助
- 0
- 注册时间
- 2021-6-19
|
回复 2# cntanglang
用下面这段看看:
@echo off
cd /d "%~dp0
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:Admin
CALL DOALL.BAT "DO_FILE.TXT" "File" 1> "LOG\DO_FILE_%DATE:~-2,2%.LOG" 2>&1
或者创建BAT快捷方式,直接运行快捷方式就没事。 |
|