Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Microsoft DOS qbasic

Quick links

About QBasic
Availability
Syntax
Examples

About qbasic

QBasic is a variant of the BASIC programming language designed by Microsoft. With QBasic the user can design computer programs and/or utilities.

Availability

The QBasic command is an external command and is available in

All Versions of MS-DOS
Windows 95
Windows 98

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
Operating systems

Resolved

Were you able to locate the answer to your questions?

Syntax

Starts the MS-DOS QBasic programming environment.

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

/BAllows use of a monochrome monitor with a color graphics card.
/EDITOR Starts the MS-DOS Editor.
/GProvides the fastest update of a CGA screen.
/HDisplays the maximum number of lines possible for your hardware.
/MBFConverts the built-in functions MKS$, MKD$, CVS, and CVD to MKSMBF$, MKDMBF$, CVSMBF, and CVDMBF, respectively.
/NOHIAllows the use of a monitor without high-intensity support.
/RUN Runs the specified Basic program before displaying it.
[[drive:][path]filename] Specifies the program file to load or run.

Examples

qbasic /run game.bas

Open qbasic and run game.bas (Note: if you do not have a program called game this will just open QBasic).

Windows 95 / Windows 98 qbasic

QBasic is not installed by default when installing Windows 95 / Windows 98; however, it is still on the CD for support with older programs, as well as people still interested in programming in basic. This can be found in one of the below locations.

Windows 95 - QBasic can be located in different locations depending upon the release of Windows 95 you have, as well as if your CD is an OEM CD. To locate QBasic, place your Windows 95 CD within the computer click Start / Find and search for QBASIC*.*, and ensure that you're looking in the CD-ROM drive. This should locate two files: qbasic.exe and qbasic.hlp, copy these two files to a directory of your choice on the hard disk drive.

Windows 98 Users -

X:\TOOLS\OLDMSDOS>

X being the letter of your CD-ROM drive, if you wish to use QBasic without the Windows 98 CD you must copy QBasic.exe and QBasic.hlp to a directory on your hard disk drive.

Extra Note: if you have an OEM Restore CD and do not have the above directory, follow the instructions for Windows 95 users.

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope