string nomServ = "";
string modificadores = "-n 1 -w 20 ";
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "ping.exe";
p.StartInfo.Arguments = modificadores + "127.0.0.1";
p.Start();
p.WaitForExit();
string output = p.StandardOutput.ReadToEnd();