Automatic Exit to Command Prompt After Running QBasic Program

Article translations Article translations
Article ID: 75355 - View products that this article applies to.
This article was previously published under Q75355
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

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 "/run" option from the command prompt. For example, if the QBasic program is called TEST.BAS, type the following:
    QBASIC /RUN TEST.BAS

Properties

Article ID: 75355 - Last Review: October 7, 2013 - Revision: 2.0
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
Keywords: 
kbnosurvey kbarchive KB75355

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com