Search code examples
c#windowsvisual-studio-2005consolewinexe

Console window display by argument


I have a C# project building "winexe" that startup without console window.

However, I want to dispaly the console window and write stdout/stderr by giving a cmd line parameter. If it close, the application shutdown. For example: eclipse.exe -debug

How can it be done?

PS. I am using Visual Studio 2005


Solution

  • Tried this: http://vaibhavgaikwad.wordpress.com/2007/02/21/console-window-for-a-windows-application-in-net/ - seems to works perfectly!