qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SHELL Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Suspends execution of a Basic program to run a DOS command or batch file.
 
SHELL [commandstring$]
 
    ■ commandstring$    The name of a DOS command or batch file.
 
    ■ Your program resumes when the DOS command or batch file completes.
    ■ If you omit the command string, SHELL invokes a DOS shell and displays
      the DOS prompt. Use the EXIT command to resume your program.
 
Example:
    SHELL "DIR"