using System.Diagnostics; using System.IO; Process p = new Process(); p.StartInfo.FileName = "ping www.csharpfr.com"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.Start(); string sortieConsolePing = p.StandardOutput.ReadToEnd(); // ReadToEnd prendra le meme temps d'execution que l'affichage du ping.