Consider a.exe is not present in the folder D:\temp
cd /d D:\temp
.\a.exe
.\b.exe
I want to execute a.exe first, and I have to wait for its completion, and then i want to execute b.exe. If consider a.exe is not there in that path then its throwing the error message as below and then it start executing the next command b.exe.
.\a.exe is not recognized as an internal or external command
But If I execute that exe with start its showing error message in one dialog box.
cd /d D:\temp
start /wait .\a.exe
start /wait .\b.exe
I dont want this behaviour. I want to execute with start /waitonly, but if that exe is not there it has to return to the next command.
Note :
I dont want to check whether exe is present or not before running, like metioned below
cd /d D:\temp
IF NOT EXIST .\a.exe exit 1
start /wait .\a.exe
start /wait .\b.exe
This will avoid the dialog box: