title: How to capture the PID of a process when launching it from command line?
body: <p>Is there a way to do this purely in a .bat file?</p>
  
  <p>The purpose is to launch <code>iexplore.exe</code>, then kill just that instance when it's finished.</p>