Hello
Je suis en train de faire mumuse avec les demande ping, netstat, ... et
j'ai trouvé une explication pour ce genre de requete sur ce site.
http://www.csharpfr.com/forum.v2.aspx?ID=111352
Mais quand je met ce code
Process p = new Process();
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = "ping www.scripts-web.net";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
string sortieConsolePing = p.StandardOutput.ReadToEnd();
MessageBox.Show(sortieConsolePing);
J'ai l'erreur suivante
Le fichier spécifié est introuvable
Par contre si à la place de "ping www.scripts-web.net", je met "ping"
il m'affiche le retour de la commande ping sans rien derrière!!!
je comprend vraiment pas!!
plz help!!