how to execute console application from windows form?

后端 未结 8 954
感情败类
感情败类 2020-12-09 11:43

I want to run a console application (eg app.exe) from a windows form load event. I\'v tried System.Diagnostics.Process.Start(), But after it opens app.exe, it closes it immi

8条回答
  •  悲哀的现实
    2020-12-09 12:12

    app.exe can end with Console.ReadLine() assuming it too is a C# application where you control the source code.

提交回复
热议问题