Having one process run another process at timed intervals
<p>Stay with me for a minute:</p>

<p>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.</p>

<p>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...</p>

<pre><code>if(!ProcessA.isRunning)
    ProcessA.Run();
else
    Wait Until Next Interval to try
</code></pre>

<p>Process A is more or less written.  I am figuring it will be its own .exe, rather than use multithreading to accomplish this.</p>

<p>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? </p>
