Code to end one batch file with another-can anyone assist? -


i have small batch program made run few batch files. have set run files. quick question: have prep file files ready next batch file. however, prep file runs in loop. made run in loop customize per-machine. want loop 10 seconds , close. want main batch file opens prep batch file, runs 10 seconds, closes it, , runs next batch file in sequence. there way this? see example below more. thanks!

example:

launcher folder/prep.bat @echo off start prep.bat //wait 10 seconds, close prep.bat start launch.bat 

in prep.bat add this

@echo off title prep.bat 

and in controlling batch file add this

start "" prep.bat ping -n 10 localhost >nul taskkill /f /im cmd.exe /fi "windowtitle eq prep.bat" 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -