【发布时间】:2011-09-21 06:22:03
【问题描述】:
可能重复:
Is there a way to create a second console to output to in .NET when writing a console application?
如何在运行现有控制台应用程序 (1) 的同时打开新的控制台应用程序 (2)?
static void Main(string[] args)
{
try
{
Console.WriteLine("success");
//how to close this console
}
catch (Exception ex)
{
Console.WriteLine("Error Due To: " + ex.Message);
}
finally
{
//code for opening the second console....(is that passible)
//how to close this console
}
}
【问题讨论】:
-
您是想启动第二个进程,还是有更多的想法?
-
只想打开第二个控制台应用程序...