请帮我看看这段c#有什么错? MessageBox.Show(output);换成Console.Write(output) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是这样,cpu 100%,内存耗尽,我就是csc ping.cs,然后执行ping.exe,有谁知道? 我这个正常结束~~呵呵~~~using System;using System.Diagnostics;namespace Pingexe{ class Pingexe { [STAThread] static void Main(string[] args) { Process proc = new Process(); proc.StartInfo.FileName = @"ping.exe"; proc.StartInfo.Arguments = "www.sina.com.cn"; proc.StartInfo.UseShellExecute = false; proc.StartInfo.RedirectStandardOutput = true; proc.Start(); string output = proc.StandardOutput.ReadToEnd(); Console.WriteLine(output); proc.WaitForExit(); } }} 加密种子问题 本息结算计算器 怎么判断一个窗体是否已存在? 关于oracle--blob(clob)的操作问题,各位请进,分不够再加 谁帮忙翻译一下这句英文? 用C 来读些Wave 文件 C#类在windows 2008 R2 64bit无法识别 有关图像识别技术的问题 pictureBox中的图片背景如何透明啊? 如何关闭窗体? 调用WebService的问题??? 声明:CSDN助手早不提供下载和源码了,散点分给大家补偿一下吧,另外请版主把那个发源码的帖子删了
有谁知道?
using System.Diagnostics;namespace Pingexe
{
class Pingexe
{
[STAThread]
static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo.FileName = @"ping.exe";
proc.StartInfo.Arguments = "www.sina.com.cn";
proc.StartInfo.UseShellExecute = false; proc.StartInfo.RedirectStandardOutput = true;
proc.Start();
string output = proc.StandardOutput.ReadToEnd();
Console.WriteLine(output);
proc.WaitForExit();
}
}
}