How To Close Console Window When MS-DOS Application Completes (152682)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
This article was previously published under Q152682 SUMMARY
In Microsoft Windows 95, Windows 98, Windows Millennium Edition, the default behavior of the operating system is to keep the console window of an MS-DOS application open if it has displayed text in the window. This provides users with an opportunity to read any messages that may have been displayed in the window before the window is closed. To close a window in this state, you must click the close button (that is, "X") on the window caption or Close on the System menu.
In some instances, however, the user's needs may require that the console
window close automatically. The solution is to programmatically remove all
the displayed text of an MS-DOS application thereby allowing the console
window to close automatically.
Modification Type: | Minor | Last Reviewed: | 9/27/2004 |
---|
Keywords: | kbConsole kbKernBase KB152682 |
---|
|