Passing Command-line arguments from C# to a external exe

后端 未结 1 1575
轻奢々
轻奢々 2021-01-22 02:13

I have a similar problem as already solved here. But I can not figure out, how the problem got solved. I have a program that get paramter the define a input and output file. Run

相关标签:
1条回答
  • 2021-01-22 02:20

    The only parameter you need is -display Others are not parameters to the program and should be handled by you by using RedirectStandardInput and RedirectStandardOutput

    E.g

    • read the file D:\tmp\SrcPgm\image000.pbm
    • write to StandardInput of your process
    • read from StandardOutput of your process
    • write to result.pbm

    Using command redirection operators

    0 讨论(0)
提交回复
热议问题