Microsoft KB Archive/75355

= Automatic Exit to Command Prompt After Running QBasic Program =

Article ID: 75355

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q75355



SUMMARY
After running a QBasic program, control is returned to the QBasic editor. To automatically return to the command prompt after running a QBasic program, do one of the following:

 Add the following line to the end of the QBasic program so that the statement executes at the end of the program:

SYSTEM

 Run the QBasic program with the &quot;/run&quot; option from the command prompt. For example, if the QBasic program is called TEST.BAS, type the following:

QBASIC /RUN TEST.BAS



Additional query words: 6.22 5.00 5.00a 6.00 6.20

Keywords: KB75355

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.