Possible duplicate:
How do I know if Process.Start () is successful?
I have a process that looks like a watchdog timer (let it be called WD) in my program, which is another running process (call it A). I am starting a process WDin a specific event, let it be said that a key is pressed, and I want to start another process using this process, let me call it B.
The fact is that I want to complete the initial process Aafter I know that the process Bhas been started successfully. How can I check this?
I begin the process WDand Busing the syntax Process.Start(argList)and ProcessInfo(argList).
Each process is a simple C # console application.
source
share