title: WScript.Shell and blocking execution?
body: <p>I'm using <a href="http://en.wikipedia.org/wiki/Windows_Script_Host#Usage" rel="noreferrer">WScript</a> to automate some tasks, by using WScript.Shell to call external programs.</p>
  
  <p>However, right now it does not wait for the external program to finish, and instead moves on. This causes issues because I have some tasks dependent on others finishing first.</p>
  
  <p>I am using code like:</p>
  
  <pre><code>ZipCommand = "7za.exe a -r -y " &amp; ZipDest &amp; BuildLabel &amp; ".zip " &amp; buildSourceDir
  
  Set wshShell = WScript.CreateObject("Wscript.Shell")
  wshShell.run ZipCommand
  </code></pre>
  
  <p>Is there a way to do this so it blocks until the shell executed program returns?</p>