C#: Redirect Standard Output of a Process that is Already Running

后端 未结 4 1145
离开以前
离开以前 2020-12-10 03:52

I\'ve been having a hard time getting the output of a \"sub-process\" (one launched internally by a blackbox process that I\'m monitoring via c# System.Diagnostics.Process)<

4条回答
  •  春和景丽
    2020-12-10 04:17

    Instead of redirecting the output directly from the running process, can you capture the output as it leaves the process A at the intended destination, the pass it into your new process?

提交回复
热议问题