Right..
You must use Arguments property for your purpose.
myProcess.FileName = @"C:\Windows\System32\Ping.exe"
myProcess.Arguments = "10.0.0.1"
using Verb property is not so good option I think.
If it works for you, great.
- Moty -
"James Pang" <news.microsoft.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hey thank you very much but
myProcess.StartInfo.FileName==@"C:\WINDOWS\system3 2\ping.exe 10.0.0.1";
//this will not work cant find file name...
myProcess.StartInfo.FileName==@"C:\WINDOWS\system3 2\ping.exe"; //this
works
myProcess.StartInfo.RedirectStandardOutput = true;
myProcess.StartInfo.Verb="10.0.0.1";
// myProcess.StartInfo.Verb = "Print";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.StartInfo.UseShellExecute=false;
myProcess.Start();
string output =myProcess.StandardOutput.ReadToEnd();
System.Console.WriteLine(output);