title: Running Python script using WshShell.Run in VBS does not generate output file
body: <p>I've got a problem with some VB scripting - it doesn't seem like it should be terribly difficult to solve, but even after trudging through many a page of Google I have yet to find a solution.</p>
  
  <h2>[The problem]</h2>
  
  <p>Here is my python file (test.py), simplified to just show the problem:</p>
  
  <pre><code>f = open("testing.txt", 'w')
  f.write("oh hai\n")
  f.close()
  </code></pre>
  
  <p>Of course, when run directly from the command line, this generates the file as you'd expect.</p>
  
  <p>However, when run in a simple .vbs script (WARNING: My vbs skills are lacking. This is probably why I am having a problem. So far I haven't had many issues, apart from hating life from using XP to code when I'm used to using vim)</p>
  
  <pre><code>Set WshShell = WScript.CreateObject("WScript.Shell")
  cmd = "C:\Python27\python test.py"
  WshShell.Run cmd
  </code></pre>
  
  <p>no output file is generated! At all! It's infuriating, as when I input that exact command (<code>"C:\Python27\python test.py"</code>) into the run program from the start menu, it works!</p>
  
  <h2>[System info]</h2>
  
  <p>At work, so they're on Windows XP. Everything else is pretty standard, or so I'm lead to believe.</p>
  
  <p>EDIT: Changed "C:\Python27\testing.py" to just "testing.py". This was left over from when I was trying to solve it, and thought maybe it was putting the files somewhere outside of the destination folder.</p>