I want batch1.bat
to check if batch2.bat
is running. If batch2.bat
is running, I want nothing to happen. If batch2.bat
is NOT running, I want batch1.bat
to kill the process process1.exe
.
In other words, I want batch1.bat
to start batch2.bat
and wait for it to be closed. Once it is closed, I want process1.exe
to be ended.
How would I write batch1.bat
?
Batch1.cmd
Batch2.cmd