Piping in a file on the command-line using System.Diagnostics.Process

后端 未结 3 915
野的像风
野的像风 2020-12-01 15:01

I\'m trying to run a command-line program and piping in a file. The command works fine on the command-line, but I can\'t seem to get it to work with the Process object in C#

3条回答
  •  粉色の甜心
    2020-12-01 15:48

    My guess is that you should hook the StandardInput and write in the file yourself. You could try with ShellExecute = true, but I'm not sure it'd work.

提交回复
热议问题