利用C#进行路由追踪测试

我想编写一个软件实现路由追踪测试,我想问一下用C#实现功能的思路

 Process p = new Process();
   p.StartInfo.FileName = "cmd.exe";
   p.StartInfo.UseShellExecute = false;
   p.StartInfo.RedirectStandardInput = true;
   p.StartInfo.RedirectStandardOutput = true;
   p.StartInfo.CreateNoWindow = false;
   try
   {
    p.Start();
    p.StandardInput.WriteLine("tracert 你的主机");
    p.StandardInput.WriteLine("exit");
    string 输出结果 =  p.StandardOutput.ReadToEnd();
    p.WaitForExit();
    p.Close();
   }
   catch
   {
   }

用C#实现IP的路由跟踪

Bing:C# 路由追踪测试 搜索引擎给出的很多有用的链接,你可以学习一下。