Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows batch file terminating prematurely

Tags:

batch-file

I have a following batch file

echo Setting  visual studio 2010 environment variables
set VSPATH="C:\Program Files (x86)\Microsoft Visual Studio 10.0"
%VSPATH%\VC\vcvarsall.bat

echo Generating Service

the 'Generating Service' line never prints out, can someone point out how it should be done so batch file continues execution ?

like image 508
np-hard Avatar asked Mar 16 '26 14:03

np-hard


1 Answers

Try using the CALL statement in front of your batch file

echo Setting  visual studio 2010 environment variables 
set VSPATH="C:\Program Files (x86)\Microsoft Visual Studio 10.0" 
CALL %VSPATH%\VC\vcvarsall.bat 

echo Generating Service 
like image 135
LittleBobbyTables - Au Revoir Avatar answered Mar 20 '26 00:03

LittleBobbyTables - Au Revoir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!