title: VBScript WScript.Shell Run() - The system cannot find the file specified
body: <p>I'm trying to write a VBScript (.vbs) script that uses the WScript.Shell <strong>Run()</strong> method, but it seems as though Run() can't find the file I'm passing in.</p>
  
  <p>I've boiled my script down to the following code that will reproduce the results. This can be copied to a text editor, saved as <em>test.vbs</em> and ran. <em>The <strong>type</strong> command simply outputs the text inside the file passed in.</em></p>
  
  <pre><code>Dim WShell
  Set WShell = WScript.CreateObject("WScript.Shell")
  
  WShell.Run("type C:\inetpub\wwwroot\iisstart.htm")
  
  Set WShell = Nothing
  </code></pre>
  
  <p>If you were to run the code in Run() directly from the CMD prompt, it works fine. But when it's run from inside a .vbs script and using Run(), it gives me the following error:</p>
  
  <pre><code>Test.vbs(4, 1) (null): The system cannot find the file specified.
  </code></pre>
  
  <p>I can run other commands using Run() just fine, but when I try to pass in a path it fails. Exec() fails with the same error by the way. Any ideas?</p>