I am new to batch scripting. Can someone help me with the following?
call %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
set MSBuildEmitSolution=1
msbuild "C:\Users\bleh\Documents\Visual Studio 2010\Projects\BuildApp\BuildApp.sln"
pause
This executes only the first line of the batch file, i.e. sets the VS environment.
Suggestions please.
Cheers!!
Try replacing
/kin the first line with/c. The/kswitch tocmd.execauses the command interpreter to run the command and await user input afterwards, whereas/ccauses it to exit after running your command.