S
Steve
I am using Diagnostics.Process to, well.. execute a process. I would like
to display the output of the process to my UI as it is created. For
example, ping www.yahoo.com will slowly output each result. I want to
display that output as it happens in my UI.
I don't see a clean way to do this. After my Start() call, I made a call to
StandardOutput.ReadToEnd() but it appears to hang until the process finishes
(makes sense) But what do you suggest I do to get the output as it's
generated?
One thing I realize is that I will need to launch the process in a separate
thread to free the UI to be able to display the output.
Hope someone has done this and can help. Thanks in advance,
Steve
to display the output of the process to my UI as it is created. For
example, ping www.yahoo.com will slowly output each result. I want to
display that output as it happens in my UI.
I don't see a clean way to do this. After my Start() call, I made a call to
StandardOutput.ReadToEnd() but it appears to hang until the process finishes
(makes sense) But what do you suggest I do to get the output as it's
generated?
One thing I realize is that I will need to launch the process in a separate
thread to free the UI to be able to display the output.
Hope someone has done this and can help. Thanks in advance,
Steve