I am trying to use the "Ping" command and capture the
output. I can run it with the following:
System.Diagnostics.Process.Start("ping.exe","-a
123.123.123.123");
This works fine. However, when I attempt to redirect the
output to a file using:
System.Diagnostics.Process.Start("ping.exe", " -a
123.123.123.123 > c:\\temp\\ping.txt");
This does not work. What would the correct syntax be for
this?
Any help is greatly appreciated.
P.S. Is there any other way to capture this output into
my program?