QBasic 1.1: RUN Statement

Syntax

RUN [{linenumber | file$}]

Description / Parameter(s)

linenumber The line number in the current program where execution should begin. If no line number is specified, execution begins at the first executable line.
file$ The name of a Basic source file. QBasic assumes a .BAS extension.
RUN closes all files and clears program memory before loading a program. Use the CHAIN statement to run a program without closing open files.

Example

'Assumes the program TEST.BAS is in a \DOS directory. RUN "C:\DOS\TEST.BAS"