Start, wait, start, wait till exit, then start batch file?
Posted: 09 Jan 2021 17:35
Hello everyone! im trying to make a batch file that once started, it closes a program then loads another. and i want it to wait as long as possible until i manually exit out of the 2nd program before it starts the 1st program back again. please help
It seemed it worked to the letter but it did not wait until big box is exited before it started up gameex again. it just waited 2 seconds and then started gameex along side it so now they are both running simultaneously
I NEED it to wait until big box is fully exited before it loads gameex again. so if i happen to be on big box for 3 ,5, 7 hours, when i escape out of it. continue batch and load gameex.
Code: Select all
timeout 3
taskkill /F /IM "gameex.exe" /T
timeout 2
start /wait "" "D:\Launchbox\bigbox.exe"
timeout 2
start "" "D:\GameEx\gameex.exe"
It seemed it worked to the letter but it did not wait until big box is exited before it started up gameex again. it just waited 2 seconds and then started gameex along side it so now they are both running simultaneously
I NEED it to wait until big box is fully exited before it loads gameex again. so if i happen to be on big box for 3 ,5, 7 hours, when i escape out of it. continue batch and load gameex.