Stay with me for a minute:
Process A is my main worker process. When it runs, it processes information. It can take anywhere from 30 seconds to 20 minutes to complete. There are multiple variations in this process, and it is not entirely stable. If it crashes, it’s not that big of a deal, because it can start where it left off next time it runs.
Process B is to be nothing but my starter process. I’d like it to run Process A at given intervals (like once every 5 minutes). If Process A is already running, then Process B should wait until the next interval to try. IE…
if(!ProcessA.isRunning)
ProcessA.Run();
else
Wait Until Next Interval to try
Process A is more or less written. I am figuring it will be its own .exe, rather than use multithreading to accomplish this.
My question is: How do I write Process B that runs a seperate .exe, and hooks into it so I can check to see whether or not it is running?
windows task scheduler already does all of this