Windows Command Line wait for task end before next command
<p>I have some software for Windows that opens a website on exit. I want to run a batch that closes the browser after exit from example.exe</p>

<pre><code>example.exe 
</code></pre>

<p>(wait for end of example.exe)</p>

<pre><code>taskkill /im firefox.exe
taskkill /im iexplore.exe
taskkill /im chrome.exe
</code></pre>