@echo off
:: 运行时间1800000毫秒
echo wscript.sleep 1800000 >run.vbs
::运行Debug/lab1.exe程序,后面是参数
start Debug/lab1.exe Au -log au.log
start Debug/lab1.exe Bu -log bu.log
run.vbs
::关闭 lab1.exe程序
taskkill /f /im lab1.exe
::如果要继续执行其他程序的话就继续写。。
start Debug/lab1.exe A -log a.log
start Debug/lab1.exe B -log b.log
run.vbs
taskkill /f /im lab1.exe
start Debug/lab1.exe Afu -log afu.log
start Debug/lab1.exe Bfu -log bfu.log
run.vbs
taskkill /f /im lab1.exe
start Debug/lab1.exe Af -log af.log
start Debug/lab1.exe Bf -log bf.log
run.vbs
taskkill /f /im lab1.exe
start Debug/lab1.exe Af -ber 1e-4 -log af-ber.log
start Debug/lab1.exe Bf -ber 1e-4 -log bf-ber.log
run.vbs
taskkill /f /im lab1.exe
转载于:https://www.cnblogs.com/flipped/p/6883739.html