当前位置: 首页 > 图文教程 > 脚本技术 > DOS/BAT > 三个不同文件停顿二秒弹出不同窗口的批处理

DOS/BAT
诺顿 Ghost 参数四则
巧用net命令解决XP中打印连接数问题
WinXP自动开机登陆WoW bat实现
批处理实现网吧存档
巧用批处理解决IE不支持JavaScript等问题
net命令全集
提升网络效率 宽带路由优化与使用技巧
开始→运行(cmd)命令大全
Logo1免疫补丁.bat
move命令格式及使用
nslookup来列举二级玉米
我装了IIS了,可是又进不去http://localhost 了
DOS命令详解
DOS命令常识
在 DOS 下也能访问网上邻居
如何在 Netware 服务器中安装多块网卡
DOS 概述及入门
如何进行系统配置
系统配置—获得更多常规内存
出错提示与对策

DOS/BAT 中的 三个不同文件停顿二秒弹出不同窗口的批处理


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 143 ::
收藏到网摘: n/a


代码如下:
@echo off
setlocal enableextensions
echo %time%
call :ProcDelay 200
echo %time%
goto :start
:ProcDelay delayMSec_
setlocal enableextensions
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set start_=%%h%%i%%j%%k
:_procwaitloop
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set now_=%%h%%i%%j%%k
set /a diff_=%now_%-%start_%
if %diff_% LSS %1 goto _procwaitloop
endlocal & goto :start
if "%1"=="d:\劲舞团" start d:\劲舞团
:start
start d:\劲舞团\patcher.exe
setlocal enableextensions
echo %time%
call :ProcDelay 200
echo %time%
goto :start
:ProcDelay delayMSec_
setlocal enableextensions
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set start_=%%h%%i%%j%%k
:_procwaitloop
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set now_=%%h%%i%%j%%k
set /a diff_=%now_%-%start_%
if %diff_% LSS %1 goto _procwaitloop
endlocal & goto :start
if "%1"=="d:\劲舞团" start d:\劲舞团
:start
start d:\劲舞团\劲舞团无列表补丁.exe
setlocal enableextensions
echo %time%
call :ProcDelay 200
echo %time%
goto :start
:ProcDelay delayMSec_
setlocal enableextensions
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set start_=%%h%%i%%j%%k
:_procwaitloop
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set now_=%%h%%i%%j%%k
set /a diff_=%now_%-%start_%
if %diff_% LSS %1 goto _procwaitloop
endlocal & goto :start
if "%1"=="d:\劲舞团" start d:\劲舞团
:start
start d:\劲舞团\劲舞团无响应补丁.exe
echo 补丁执行结束
pause
exit