title: Launching application using VBScript
body: <p>I am trying to launch an application from the Windows shell using VBScript. The application runs without errors when run from QtCreator. However, it crashes when run from VBScript and exits with error code 255.
  Here's the script:</p>
  
  <pre><code>Set objShell = WScript.CreateObject("WScript.Shell")
  
  rv = objShell.Run("path\to\application.exe", 1 , True)
  If rv &lt;&gt; 0 Then
      MsgBox "Failed : " &amp; rv
  End If
  WScript.Sleep 120000
  objShell.Run "taskkill /im path\to\application.exe"
  
  Set objShell = Nothing
  </code></pre>
  
  <p>Could someone please point out what I am missing?</p>