输出重定向
Process p = new Process();
// Redirect the output stream of the child process.
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = @"CslParentCls.exe";
p.Start();
// Do not wait for the child process to exit before
// reading to the end of its redirected stream.
// p.WaitForExit();
// Read the output stream first and then wait.
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
Process p = new Process();
// Redirect the output stream of the child process.
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = @"CslParentCls.exe";
p.Start();
// Do not wait for the child process to exit before
// reading to the end of its redirected stream.
// p.WaitForExit();
// Read the output stream first and then wait.
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
解决方案 »
- entity framework超简单的问题
- 请教隐藏基类方法的问题
- C#对XML的查询问题,急!
- 高分请教母版页问题-高手请进
- 请问各位前辈如何学习C#2.0~~~~~~~也就是VS.NET2.0
- 大哥大姐请问怎么样控制应用程序只能运行一次,用C#怎么写呢,谢谢1000分
- 有谁知道将存储过程中的output参数在C#做输出时能输出多少字符串
- 求一正则表达式,提取{}中的东西
- 手机短信收发程序
- 自定义了一个DataGridView的可编辑值的ComboBox列,不能表示DisplayMember
- TCP客户端通过03功能码读取Modbus TCP服务端的寄存器数据
- Graphics.FromImage(bitmap)的问题,为什么每次都要重新new bitmap
VS里面自带的你搜索安装VS目录(Depends.exe)然后利用反编译命令格式:
dumpbin /DISASM 你的文件.exe
我不能运行他,或者说不能这么简单的运行起来
不管你再怎么复杂的运行的他··你都会用到关于 Process 的东西···