title: from a batch file, how can I wait for a process to exit, after calling taskkill.exe?
body: <p>I want to write a batch file that updates a DLL that is in use by a running process, a regular application. </p>
  
  <p>To do this, the plan is to stop the process, copy the DLL to the required location, then restart the process. </p>
  
  <p>I know I can try to kill a process with <code>taskkill</code>.  How can I make sure the process has fallen over and died, after I shoot it?  </p>