Process p = new Process();
            ProcessStartInfo ps = new ProcessStartInfo();
            ps.FileName = "netstat.exe";
            ps.RedirectStandardOutput = true;
            ps.UseShellExecute = false;
            ps.WindowStyle = ProcessWindowStyle.Hidden;
            p.StartInfo = ps;
            p.Start();              
            p.WaitForExit();
            MessageBox.Show(p.StandardOutput.ReadToEnd());