I have two exe file I need run at the same time, and when the first get closed close the other one.
start programA.exe start programB.exe onclose(programA.exe) taskkill /im programB.exe
Not working. Just for easier understanding.
This question came from our site for professional and enthusiast programmers.
Attention: if more than one instance of (in this example) Notepad is running, this may close the wrong one.