Microsoft KB Archive/72740

= Bypassing the 'Welcome to MS-DOS QBasic' Window =

Article ID: 72740

Article Last Modified on 11/16/2006

-

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

-



This article was previously published under Q72740



SUMMARY
When you start the QBasic interpreter, the first screen will contain a window with the message &quot;Welcome to MS-DOS QBasic&quot; with additional lines following. To prevent this window from appearing when running QBasic, use the following command, where /run is optional but the filename must be specified:

qbasic [/run] [[drive:][path]filename]



MORE INFORMATION
More specifically, only the following three commands will start QBasic without displaying an initial message window:   Command                               Comments ---

qbasic /run [valid qbasic filename]  Runs an existing QBasic program

qbasic [valid qbasic filename]       Loads an existing QBasic program displaying the program lines

qbasic [nonexistent filename]        Loads a non-existent file displaying a blank editing screen Running QBasic using the /run switch or loading a valid QBasic program guarantees no initial window but does not guarantee a blank first screen. Only using the third command, which specifies the path of a filename that does not exist, will bring up the initial editing screen blank.

Additional query words: 6.22 5.00 5.00a 6.00 6.20 6.21

Keywords: KB72740

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.