Start two processes and connect them with a pipe in Delphi

前端 未结 4 2157
一整个雨季
一整个雨季 2021-02-09 16:09

I need to launch two external programs in my program and connect the STDOUT of the first one to the STDIN of the second program. How can you achieve this in Delphi (RAD Studio 2

4条回答
  •  粉色の甜心
    2021-02-09 16:39

    CreateProcess() allows you to redirect both stdin and stdout of application launched. Your application can read from the first app stdout and write to the second app stdin.

提交回复
热议问题