title: How to wait for a process to terminate to execute another process in batch file
body: <p>How to wait for a process to terminate before executing another process in a batch file? Let's say I have a process <code>notepad.exe</code> that I need to kill before executing <code>wordpad.exe</code>. Then, when <code>wordpad.exe</code> is terminated, I need to launch <code>notepad.exe</code> again.  How do I do that?</p>