三个不同文件停顿二秒弹出不同窗口的批处理
三个不同文件停顿二秒弹出不同窗口的批处理
发布时间:2016-12-28 来源:查字典编辑
摘要:代码如下:@echooffsetlocalenableextensionsecho%time%call:ProcDelay200echo%t...

代码如下:

@echooff

setlocalenableextensions

echo%time%

call:ProcDelay200

echo%time%

goto:start

:ProcDelaydelayMSec_

setlocalenableextensions

for/f"tokens=1-4delims=:."%%hin("%time%")dosetstart_=%%h%%i%%j%%k

:_procwaitloop

for/f"tokens=1-4delims=:."%%hin("%time%")dosetnow_=%%h%%i%%j%%k

set/adiff_=%now_%-%start_%

if%diff_%LSS%1goto_procwaitloop

endlocal&goto:start

if"%1"=="d:劲舞团"startd:劲舞团

:start

startd:劲舞团patcher.exe

setlocalenableextensions

echo%time%

call:ProcDelay200

echo%time%

goto:start

:ProcDelaydelayMSec_

setlocalenableextensions

for/f"tokens=1-4delims=:."%%hin("%time%")dosetstart_=%%h%%i%%j%%k

:_procwaitloop

for/f"tokens=1-4delims=:."%%hin("%time%")dosetnow_=%%h%%i%%j%%k

set/adiff_=%now_%-%start_%

if%diff_%LSS%1goto_procwaitloop

endlocal&goto:start

if"%1"=="d:劲舞团"startd:劲舞团

:start

startd:劲舞团劲舞团无列表补丁.exe

setlocalenableextensions

echo%time%

call:ProcDelay200

echo%time%

goto:start

:ProcDelaydelayMSec_

setlocalenableextensions

for/f"tokens=1-4delims=:."%%hin("%time%")dosetstart_=%%h%%i%%j%%k

:_procwaitloop

for/f"tokens=1-4delims=:."%%hin("%time%")dosetnow_=%%h%%i%%j%%k

set/adiff_=%now_%-%start_%

if%diff_%LSS%1goto_procwaitloop

endlocal&goto:start

if"%1"=="d:劲舞团"startd:劲舞团

:start

startd:劲舞团劲舞团无响应补丁.exe

echo补丁执行结束

pause

exit

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新DOS/BAT学习
热门DOS/BAT学习
脚本专栏子分类