tags:

views:

97

answers:

2
[DllImport("kernel32.dll")]
private static extern Int32 AllocConsole();

I can open cmd.exe with this command. But i can open only one console window and write in it. How can i open another one? Is any clean and fast solution for opening two console windows?

+2  A: 

You can do

Process.Start("cmd.exe");

as many times as you would like. Is this what you mean?

applechewer
+2  A: 

Unfortunately not, sorry — you cannot have more than one console window per application in Windows.

Timwi