waitforexit

Wait for a remote process to finish in .net

We all know and love Process.WaitForExit(). Given a pid of a process on a remote machine (created by WMI/psexec), how do I wait for it to end? ...

Visual C# GUI stops responding when process.WaitForExit(); is used

I am creating a GUI application using Visual C# 2005 (net framework 2). I use the following code to start a process: Process process = new Process(); process.StartInfo = new ProcessStartInfo("app.exe"); process.StartInfo.WorkingDirectory = ""; process.StartInfo.Arguments = "some arguments"; process.Start(); process.WaitForExit(); I wa...

Hanging on WaitForExit

Hi, I have a WaitForExit which seems to hang. I've taken a look at this post: http://stackoverflow.com/questions/139593/processstartinfo-hanging-on-waitforexit-why And I've seen the code it refers to on MSDN. The thing is when I add the string output = p.StandardOutput.ReadToEnd(); It jumps straight to the WaitToExit before it has fi...