run console application in C# with parameters

前端 未结 6 1852
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 02:31

How can I run a console application in C#, passing parameters to it, and get the result of the application in Unicode? Console.WriteLine is used in the console

6条回答
  •  不思量自难忘°
    2020-12-11 03:08

    You should be careful depending upon your use some of the other examples can have issues. For common mistakes made writing your own code, read "How to use System.Diagnostics.Process correctly"

    For a library to use, there is one here: http://csharptest.net/browse/src/Library/Processes with a brief usage guide: "Using the ProcessRunner class"

提交回复
热议问题