title: Windows 7 Command Prompt: How do I execute a batch script from the command line?
body: <p>I'm using Windows 7, and my problem is running this file from a console (cmd.exe):</p>
  
  <pre><code>W:\software\projects\myproject\build\msvc\build.bat
  </code></pre>
  
  <p>When I move into the folder containing the file manually and run it from there using the following command sequence, it works:</p>
  
  <pre><code>W:\&gt;cd software
  W:\software&gt;cd projects
  W:\software\projects&gt;cd myproject
  W:\software\projects\myproject&gt;cd build
  W:\software\projects\myproject\build&gt;cd msvc
  W:\software\projects\myproject\build\msvc&gt;build.bat
  </code></pre>
  
  <p>However, when I try to run the file from the root directory in any of these ways:</p>
  
  <pre><code>W:\&gt;software\projects\myproject\build\msvc\build.bat
  W:\&gt;call software\projects\myproject\build\msvc\build.bat
  W:\&gt;@call software\projects\myproject\build\msvc\build.bat
  W:\&gt;"software\projects\myproject\build\msvc\build.bat"
  W:\&gt;call "software\projects\myproject\build\msvc\build.bat"
  W:\&gt;@call "software\projects\myproject\build\msvc\build.bat"
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <pre><code>The system cannot find the path specified.
  </code></pre>
  
  <p>I'm pretty sure you didn't have to navigate to the folder containing the file in order to run it when I was using Windows XP (though I could be wrong, of course), but this apparently seems to be the case with Windows 7. Or am I missing something?</p>