title: vb6: how to run a program from vb6 and close it once it finishes?
body: <p>basically vb6 launches a process but the problem is closing it when it finishes.</p>
  
  <pre><code>shell "something.exe"
  </code></pre>
  
  <p>when the external program displays msgbox saying "finished", it can be closed. however when it displays the msgbox, the process is still running in taskmgr.</p>
  
  <p>how to detect the msgbox and killing the program ?</p>