disable "Press Any Key to Continue . . ."
Hi All,
I have written a windows console app and we want to call it over and over again through scripts / batches etc, but the some how the application automatically produces a "Press Any Key to Continue . . ." at the end of its execution. I didn't add this in there, but I want to remove it, does anyone know how to do this?
thanks!
Re: disable "Press Any Key to Continue . . ."
If you are running the console app (in Release mode) from within the IDE, this will appear.
Try running the application from a cmd window (outside the IDE). The 'Press any key...' should go away.
Re: disable "Press Any Key to Continue . . ."
Yeah, the "Press any key..." is a courtesy of the development IDE, not an actual part of your program. If you actually look at Dev Studio executes your program, it creates a .bat file which it runs. In that bat file is a pause command.
Running your command directly will just cause the console to flash (pop up and go away instantly) if run via an icon, or just run normally from a console shell.