Answer the question
In order to leave comments, you need to log in
How and use process output stream?
How to display process output stream?
When outputting a string there, it is necessary to display the string in this application in a timely manner
Answer the question
In order to leave comments, you need to log in
Example from MSDN
Process compiler = new Process();
compiler.StartInfo.FileName = "csc.exe";
compiler.StartInfo.Arguments = "/r:System.dll /out:sample.exe stdstr.cs";
compiler.StartInfo.UseShellExecute = false;
compiler.StartInfo.RedirectStandardOutput = true;
compiler.Start();
Console.WriteLine(compiler.StandardOutput.ReadToEnd());
compiler.WaitForExit();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question