I created a batch script (view in full here) to start some services first and then an application. After the application is complete, the batch is suppose to GOTO somewhere but it is waiting for the program to exit, to continue further.
Header to start the application and proceed:
:vmSTARTAPP
"C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe"
IF NOT %BACK%==NULL GOTO %BACK%
GOTO STARTAPPCONT
This header is called from another header:
:STARTAPP
cls
echo Starting Application
GOTO %BATCH%
%BATCH% contains the name for the next header - in the above case, vmSTARTAPP.
If I run it from a new Command Prompt window it works fine, just not in this batch.
What am I doing wrong?
P.S. Do not refer this question to my previous question. This is a completely different case.
/waitis given forstartcommand. But this is totally weird – Starx Jul 27 '11 at 2:36