I need to do this in a batch file:
So far, I've done 1 and 2, my problem is getting into #3.
Here's what I have so far.
start cmd.exe /k "%comspec% /c "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86"
This is what I've done to open up a Qt 5.0.2 command prompt with VS2012 setup and my own batch file run:
C:\Windows\System32\cmd.exe /A /Q /K C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\bin\qtenv2.bat & call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x64 & cd c:\tkbt\Launch2.0.0 & call SetupEnvVars.bat
Drops me in the right spot with all the environment variables all set up.
So the answer to your question is to append your next call after an "&"