如何捕获一个过程的标准输出/错误? [英] How to capture the standard output/error of a Process?
本文介绍了如何捕获一个过程的标准输出/错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一个人怎么捕捉由的Process.Start()
开始到字符串处理的标准输出/错误
?
How does one capture the standard output/error of a process started by a Process.Start()
to a string
?
推荐答案
按<一href="http://www.c-sharpcorner.com/UploadFile/edwinlima/SystemDiagnosticProcess12052005035444AM/SystemDiagnosticProcess.aspx"相对=nofollow>重定向它并读取数据流。
这篇关于如何捕获一个过程的标准输出/错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文