Hi,
Since you need a timeout when waiting on a process exit.
Process.WaitForExit is not suitable for you.
One way I can think of is using a timer in your program, checking the
Process.HasExited property in the OnTimer event handler.
If you need block your program at that point, you may try using a loop with
some Thread.Sleep call instead.
Does solve your problem?
Please feel free to reply to this thread if you still have problem on this
issue.
Best regards,
Ying-Shen Yu [MSFT]
Microsoft community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.