title: How to wait shell command until another one finishes
body: <p>I got a problem with vbscript.</p>
  
  <p>Hi all,</p>
  
  <p>I have a problem to wait shell.run finished.</p>
  
  <p>If I run 3 shell.run like below, how can I make them wait until prior command finished?</p>
  
  <pre><code>srtCmd1 = "msiexec.exe /i c:\a.msi”
  srtCmd2 = "msiexec.exe /i c:\b.msi”
  srtCmd3 = "c:\c.bat”
  
  objShell = CreateObject("WScript.Shell")
  objShell.Run srtCmd1, 1, True
  objShell.Run srtCmd2, 1, True
  objShell.Run srtCmd3, 1, True
  </code></pre>
  
  <p>But they are running almost at the same time.</p>
  
  <p>How can I solve it.</p>
  
  <p>Thank you for your help in advance.</p>