Trying to get StandardOutput after running a console process

巧了我就是萌 提交于 2019-12-02 04:21:22

Seeing as the line you are missing seems like an error message, should you not be looking at Process.StandardError Property

When a Process writes text to its standard error stream, that text is normally displayed on the console. By redirecting the StandardError stream, you can manipulate or suppress the error output of a process. For example, you can filter the text, format it differently, or write the output to both the console and a designated log file.

Have you tried redirecting and watching StandardError too? It seem likley that this is output to the error stream.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!