Open two console windows from C#

后端 未结 4 2140
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 12:40
[DllImport(\"kernel32.dll\")]
private static extern Int32 AllocConsole();

I can open cmd.exe with this command. But i can open only one console win

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 13:15

    1. Run the Console app (first window)
    2. Got to bin > debug and open the YourApplication.exe file (second window)

提交回复
热议问题