Vlad Otrocol
Vlad Otrocol

Reputation: 3190

How to run a script at the start of the visual studio command-line tool?

I am using visual studio 2010 I need a script that launches the visual studio console and executes some commands More specifically something like this:

%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
msbuild smothing
cd somewhere
etc...

However after executing the first line and entering the visual studio mode the script stops

How can I make it run msbuild and everything else in one go?

Upvotes: 0

Views: 3082

Answers (1)

Vlad Otrocol
Vlad Otrocol

Reputation: 3190

I needed to change the top line with this:

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86

Upvotes: 2

Related Questions