2
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.
Obviously,
/wait
is given forstart
command. But this is totally weird – Starx – 2011-07-27T02:36:05.913Did you try it without the @echo off to see what is going on? – jftuga – 2011-07-27T02:59:20.793
@jftuga, Just tried it, it is executing as it should? Just not functioning as it should :( – Starx – 2011-07-27T03:06:24.687
Also, looking at the full source, IIRC, the ERRORLEVELS for CHOICE should start highest to lowest... Am I right? – Canadian Luke – 2011-07-27T16:27:23.100
@Luke, Yeah, I tried highest to lowest first, but it didn't work, so had to go the other way. – Starx – 2011-07-28T04:36:50.557