Automatic Exit to Command Prompt After Running QBasic Program (75355)



The information in this article applies to:

  • Microsoft MS-DOS operating system 5.0
  • Microsoft MS-DOS operating system 5.0a
  • Microsoft MS-DOS operating system 6.0
  • Microsoft MS-DOS operating system 6.2
  • Microsoft MS-DOS operating system 6.21
  • Microsoft MS-DOS operating system 6.22

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

    QBASIC /RUN TEST.BAS


Modification Type:MajorLast Reviewed:5/12/2003
Keywords:KB75355