how to execute console application from windows form?

后端 未结 8 911
感情败类
感情败类 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:46

    Create a new text file, name it app.bat and put this in there:

    app.exe
    pause
    

    Now have your form point to that bat file.

提交回复
热议问题