WD: Window Stays on Screen Using Shell to Start MS-DOS ProgramLast reviewed: February 11, 1998Article ID: Q138807 |
The information in this article applies to:
SYMPTOMSIf you use the Shell command to run an MS-DOS program, the MS-DOS box remains on the screen, and you must manually close the box.
CAUSEThe Close On Exit property is not set for the MS-DOS window.
WORKAROUNDTo work around this problem, use either of the following methods.
Method 1
Method 2Start the program using the MS-DOS command interpreter, Command.com, with the /C switch. This switch closes the window after the program quits. For example, to run a batch file use the following command:
Shell "command.com /c foo.bat" REFERENCESFor help with Command.com switches, start MS-DOS Prompt, type "command /?" (without the quotation marks), and press ENTER.
|
Additional query words: 8.0 8.0 doesn't remains stays open
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |