title: Wscript.Shell Run doesn't work consistently
body: <p>I'm trying to run the following bit of code in a vb6 dll:</p>
  
  <pre><code>Dim objWSShell As Object
  Set objWSShell = CreateObject("Wscript.Shell")
  objWSShell.Run strPath &amp; "test.bat", 0, True
  </code></pre>
  
  <p>The dll process gets hung up.  The batch file will not run, no matter what its contents.  I even tried an empty batch file and it still hung up.  However, if I try this same piece of code, with this change:</p>
  
  <pre><code>Dim objWSShell As Object
  Set objWSShell = CreateObject("Wscript.Shell")
  objWSShell.Run "calc", 0, True
  </code></pre>
  
  <p>It works fine.  I can't figure out why exe files work and bat files don't.  Any ideas?</p>