Automatic Exit to Command Prompt After Running QBasic Program

This article was previously published under Q75355
This article has been archived. It is offered "as is" and will no longer be updated.
After running a QBasic program, control is returned to the QBasiceditor. To automatically return to the command prompt after running aQBasic 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:
  • Run the QBasic program with the "/run" option from the command prompt. For example, if the QBasic program is called TEST.BAS, type the following:
6.22 5.00 5.00a 6.00 6.20

Article ID: 75355 - Last Review: 10/07/2013 00:47:08 - Revision: 2.0

  • 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
  • kbnosurvey kbarchive KB75355