Using AttachConsole, user must hit enter to get regular command line.

Posted by Clangon on Stack Overflow See other posts from Stack Overflow or by Clangon
Published on 2009-08-20T10:31:58Z Indexed on 2010/03/17 14:31 UTC
Read the original article Hit count: 107

Filed under:
|

I have a progaram that can be ran both as a winform, or from command line. If it is invoked from a command line I call AttachConsole(-1) to attach to parent console.

However, after my program ends, the user must hit enter to get back the standard command prompt ("c:\>"). is there a way to avoid that need?

Thanks. I could wrap it in a cmd file to avoid that issue, but I would like to do it from my exe.

© Stack Overflow or respective owner

Related posts about c#

Related posts about console