title: How to run a script at the start of the visual studio command-line tool?
body: <p>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:</p>
  
  <pre><code>%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
  msbuild smothing
  cd somewhere
  etc...
  </code></pre>
  
  <p>However after executing the first line and entering the visual studio mode the script stops</p>
  
  <p><strong>How can I make it run msbuild and everything else in one go?</strong></p>