Redirecting stdout of one process object to stdin of another

后端 未结 4 754
谎友^
谎友^ 2020-12-15 01:42

How can I set up two external executables to run from a c# application where stdout from the first is routed to stdin from the second?

I know how to run external pro

4条回答
  •  感情败类
    2020-12-15 02:37

    You could use the System.Diagnostics.Process class to create the 2 external processes and stick the in and outs together via the StandardInput and StandardOutput properties.

提交回复
热议问题