System.Diagnostics.Process p = new System.Diagnostics.Process();
..........;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
StreamReader sr = p.StandardOutput;
..........;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
StreamReader sr = p.StandardOutput;
解决方案 »
- 关于压缩
- 在桌面如何显示这样的效果?
- 誰知道C#中線程池支持創建的最大線程數?
- WinForms和asp.net怎么交互
- 菜鸟提问:vb中语句改写成C#的怎么写:with aaa aaa=111 end with
- 升級程序的製作問題
- winsock控件程序填空,20分
- 做了个绘制统计图(柱形图和扇形图)的class,与大家共同研究
- 两个已经存在的窗体间如何得到相互对象呢?我不想new,一new就有新窗体产生了
- 调用WIN API32的问题public static extern int MessageBoxEx(IntPtr hWnd,string msgText,string msgCaption,int style,int LanguageId);
- 如何用C写一个程序,找一个20位的素数?
- 边接oracle怎么这么慢?sql server不感觉慢。是不是我的连接串有问题?
{
Console.WriteLine(sr.ReadLine());
}
p.StartInfo.UseShellExecute = false;