title: Running MSBuild from command prompt
body: <p>If I open up Command Prompt, and type msbuild, or /msbuild followed by a path file, It says that</p>
  
  <p><code>'msbuild' is not recognized as an internal or external command, operable program or batch 
      file.</code>'</p>
  
  <p>However, when I run the same lines in visual studios command prompt it works.. Anybody know why this is? </p>
  
  <p>Here is my python script to run MSBuild through the command prompt</p>
  
  <pre><code>import subprocess
  filename="C:\Users\bb\Documents\bb\Code\VisualStudio\tree.ProEAPI.UnitTests\tree.ProEAPI.UnitTests.vbproj"
  p = subprocess.Popen(['C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe', filename], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  for line in p.stdout.readlines():
      print line,
  retval = p.wait()
  </code></pre>