Process process1=new Process();
process1.StartInfo.FileName="c:\\windows\\ping.exe";
process1.StartInfo.UseShellExecute = false;
process1.StartInfo.Arguments="213.24.19.200";
process1.StartInfo.RedirectStandardOutput = true;
process1.Start();string msg = process1.StandardOutput.ReadToEnd(); // 得到返回值
process1.WaitForExit();
process1.Close();MessageBox.Show(msg);可每次运行都会有一个Dos屏幕运行一下,如何不出现这个Dos窗口?
process1.StartInfo.FileName="c:\\windows\\ping.exe";
process1.StartInfo.UseShellExecute = false;
process1.StartInfo.Arguments="213.24.19.200";
process1.StartInfo.RedirectStandardOutput = true;
process1.Start();string msg = process1.StandardOutput.ReadToEnd(); // 得到返回值
process1.WaitForExit();
process1.Close();MessageBox.Show(msg);可每次运行都会有一个Dos屏幕运行一下,如何不出现这个Dos窗口?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货