Eccentric Posted April 10, 2006 Posted April 10, 2006 Hi, does anyone know a way of running a traceroute inside a form then displaying the results in a label? Quote
Gill Bates Posted July 4, 2006 Posted July 4, 2006 Here's how you can do it synchronously:System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardInput = true; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.CreateNoWindow = true; process.StartInfo.FileName = "tracert"; process.StartInfo.Arguments = "www.yahoo.com"; process.Start(); // read output synchronously txtOutput.Text = process.StandardOutput.ReadToEnd();The Process class also provides various asynchronous methods. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.