title: Why does this VBScript give me an error?
body: <p>I saved this <a href="http://en.wikipedia.org/wiki/VBScript" rel="noreferrer">VBScript</a> script to my local machine as c:\test.vbs:</p>
  
  <pre><code>WScript.StdOut.WriteLine "This is a test"
  </code></pre>
  
  <p>When I run it from the command line, I get this error:</p>
  
  <pre><code>---------------------------
  Windows Script Host
  ---------------------------
  Script: C:\test.vbs
  Line:   1
  Char:   1
  Error:  The handle is invalid. 
  Code:   80070006
  Source:     (null)
  
  ---------------------------
  OK   
  ---------------------------
  </code></pre>
  
  <p>I get this under Windows Vista (SP1) and Windows XP Pro (SP3).</p>