how to execute console application from windows form?

后端 未结 8 921
感情败类
感情败类 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 11:51

    If you can change the code of app.exe, just add Console.In.Read() to make it wait for a key press.

提交回复
热议问题