C++ CLR System::Diagnostics::Process,进程启动后重定向输出?
我正在使用 System::Diagnostics::Process的 GetProcessesByName 来检查计算机上是否正在运行某个进程。我希望能够将它找到的进程的输出重定向到我的 CLR 项目中的控制台。当它(找到的进程)已经运行时我该怎么做?
I'm using System::Diagnostics::Process's GetProcessesByName to check and see if a certain process is running on the machine. I want to be able to redirect the process it find's output to a console in my CLR project. How do I do that when it (the process found) is already running?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
附加到进程 OutputDataReceived 事件。
Attach to the processes OutputDataReceived event.