c# ProcessStartInfo.Start - reading output but with a timeout

后端 未结 6 1532
小鲜肉
小鲜肉 2020-12-08 23:53

If you want to start another process and wait (with time out) to finish you can use the following (from MSDN).

//Set a time-out value.
int timeOut=5000;
//Ge         


        
6条回答
  •  情话喂你
    2020-12-09 00:42

    Just add everything from the first example below the WaitForExit() call to the second example.

提交回复
热议问题