------------------------ MS-DOS v6.22 Help: QBASIC -------------------------
<Notes>                                                            <Index>
----------------------------------------------------------------------------

                                   QBASIC

Starts MS-DOS QBasic, a program that reads instructions written in the Basic
computer language and interprets them into executable computer code.

The QBasic program provides a complete environment for programming in the
Basic language. QBasic includes extensive online Help. For more information
about using QBasic, press ENTER immediately after starting QBasic or press
F1 any time while running QBasic.

Syntax

    QBASIC [/B] [/EDITOR] [/G] [/H] [/MBF] [/NOHI]
    [[/RUN][drive:][path]filename]

Parameter

[drive:][path]filename
    Specifies the location and name of the file to load when QBasic starts.

Switches

/B
    Displays QBasic in black and white if you have a color monitor.

/EDITOR
    Invokes MS-DOS Editor, a full-screen text editor.

/G
    Provides the fastest update of a CGA monitor.

/H
    Displays the maximum number of display lines possible on your screen.

/MBF
    Converts the built-in functions MKS$, MKD$, CVS, and CVD to MKSMBF$,
    MKDMBF$, CVSMBF, and CVDMBF, respectively.

/NOHI
    Allows the use of a monitor that does not support high-intensity video.
    Do not use this switch with Compaq laptop computers.

/RUN
    Runs the specified Basic program before displaying it. You must specify
    a filename.

                                      ***

<Syntax>
----------------------------------------------------------------------------

                               QBASIC--Notes

Cannot use MS-DOS Editor if MS-DOS QBasic is not present

To use MS-DOS Editor, you must have the QBASIC.EXE file in the current
directory, or in the same directory as the EDIT.COM file in your search
path. If you delete QBASIC.EXE to save space on your hard disk, you cannot
use MS-DOS Editor.

Running consecutive Basic programs

You can run consecutive Basic programs from a batch file by using the Basic
SYSTEM statement and the QBASIC command with the /RUN switch. A SYSTEM
statement quits QBASIC and returns control to MS-DOS after a Basic program
has run, instead of returning to QBasic. This allows you to run more than
one Basic program from a batch file without having to intervene.

Display of shortcut keys

Some monitors may not support the display of shortcut keys by default. If
your monitor does not display shortcut keys, use the /B switch (for CGA
monitors) and the /NOHI switch (for systems that do not support bold
characters).

                                      ***

----------------------------------------------------------------------------
<Top of page>
Last update: December 07, 2002 14:45 by
Content © 1997 Microsoft Corporation
All else © 2000-2005
Counter