Hi All,
I wanted to develop a WPF application to capture the output of a
command line program and display it in a GUI.
However I get a weird error in the following code:
System.Diagnost ics.Process pfadminProc = new
System.Diagnost ics.Process();
pfadminProc.Sta rtInfo = new
ProcessStartInf o();
pfadminProc.Sta rtInfo.Redirect StandardInput = true;
pfadminProc.Sta rtInfo.Redirect StandardOutput = true;
pfadminProc.Sta rtInfo.Redirect StandardError = true;
pfadminProc.Sta rtInfo.FileName = "process";
pfadminProc.Sta rtInfo.Argument s = "arguments" ;
pfadminProc.Sta rt();
StreamReader outputReader =
pfadminProc.Sta ndardOutput;
pfadminProc.Wai tForExit();
When I try to execute the last line, I get an error saying that some
"Window1.xa ml" resource could not be found. What in the world does
*executing a process* have anything to do with the XAML files. Can
somebody enlighten me??
Thanks,
Sundar