Chris, thanks for the reply! However, I would rather have a command line application that can show as a Windows application, with a "dangling" command line window, than having to relate to two different applications.
I would like the decision to use command line window to be taken when application analyses command line arguments: 1. If wants command line window a) If was started from command line, connect stdin / stdout / stderr there b) else, create new command line window and reconnect stdin etc. there 2. else, open as regular Windows application with no command line window. I guess this feature is quite hard to implement, but other pointers would be appreciated. XP-or-newer specific implementation is OK - can fallback to "dangling" command line window for older OS. Regards, Rune Christensen -----Original Message----- From: Chris Sells [mailto:[EMAIL PROTECTED]] Sent: 12. juni 2002 16:23 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Console window for Windows application When we've needed to do that in the past, we built a MyApp.com that would be found from the command line first and then called MyApp.exe with the appropriate command line args. Chris ----- Original Message ----- From: "Rune Christensen 8397" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 1:13 AM Subject: [DOTNET] Console window for Windows application > I'd like to implement the following algorithm for when a Windows application > wants console window / command line window access: > 1. Was application started from a command line window? > Yes: select this window and goto 3. > 2. Create a command line window and select this > 3. Connect the In, Out and Error attributes of System.Console to selected > window. > > > Can anyone help? > > Regards, > Rune Christensen > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.