I have the following code:
info = new System.Diagnostics.ProcessStartInfo(\"TheProgram.exe\", String.Join(\" \", args)); info.CreateNoWindow = true; info.Win
Rob answered it and saved me few more hours of trials. Read the output/error buffer before waiting:
// Read the output stream first and then wait. string output = p.StandardOutput.ReadToEnd(); p.WaitForExit();