Reputation: 103
I have a program "Blah.exe" that I want start right after the processe Blah2.exe closes.
Blah2 closes by itself in a variable amount of time. Blah2.exe cannot run while blah.exe is running. Blah2.exe must run only once blah.exe closes whenever that might be.
This is what i got so far....
rem Blah
cd C:\Program Files (x86)\Blah\
start Blah
rem Blah2
cd C:\Program Files (x86)\Blah\
start Blah2.exe
Upvotes: 0
Views: 6382
Reputation: 7271
Try using the /W
flag in start
which waits for the program to exit.
rem Blah
cd C:\Program Files (x86)\Blah\
start /W Blah
**???***
rem Blah2
cd C:\Program Files (x86)\Blah\
start /W Blah2.exe
Upvotes: 2
Reputation: 8292
Use CALL command :
@echo off
call C:\Program Files (x86)\Blah\Blah.exe
call C:\Program Files (x86)\Blah\Blah2.exe
Upvotes: 0