I am using Windows 10.
I have a program that allows me to run another program when a particular event is triggered. I can specify a batch file, which the program does run successfully.
However, I am trying to restart the original program when the event is triggered.
I have a TASKKILL, TIMEOUT, START batch file.
Unfortunately, as soon as the TASKKILL is executed, not only does the original program terminate, but the batch file script also terminates. So it never gets to the START command.
I tried cascading two batch files, running in two separate CMD windows, but that did not solve the problem. They apparently are all considered to be children of the original program.
Any suggestions?
FYI, The program that I am running is ClocX. The event is an alarm going off.