How to run batch script for 2 hours -
i have multiple batch files:
master1.bat master2.bat master3.bat master4.bat
each of when execute runs continuously in loop until interrupted user. how can make master.bat runs master1.bat 1st 3 hrs->stops , start master2.bat , on. i.e master.bat
should following
start master1.bat after 3 hrs stop master1.bat start master2.bat after 3 hrs stop master2.bat start master 3.bat after 3 hrs stop master3.bat
with taskkill
can selectively kill process title.and there's lot of ways delay in batch file
so:
::start bat master1 title start "master1" master1.bat ::wait 3 hrs typeperf "\system\processor queue length" -sc 1 -si 18000 >nul :: kill window title master1 taskkill /f /fi "windowtitle eq master1*"
and can repeat rest of scripts.
Comments
Post a Comment