Quantcast
PC World
You are not logged in, click here to log in.

Don't Count MS-DOS Down And Out

VERSION 1 Published

Created on: May 9, 2008 10:51 AM by Rabbit - Last Modified:  May 9, 2008 11:28 AM by Rabbit


The predecessor for MS-DOS was QDOS (Quick and Dirty Disk Operating System), and it is only fitting that finding that QBasic will run smoothly on Windows NT machines - Windows 2000/XP. You can download a full copy of Quick Basic at the following URL: http://www.daniweb.com/forums/thread36804.html. Create a new Folder on your computer and open the downloaded file inside of the folder (not in C:\Windows\System\System32) using a DOS Prompt window. Here is a screen snapshot that directs you once you have completed the download:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3652/QBasic1.JPG

Type on a 'y' in response to the program's inquiry and you will see the files briefly after which time you will see the opened file folder:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3653/QBasic2.JPG

Locate the HELP icon (right column) and click the icon to open the MS-DOS (?) Help window:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3654/QBasic3.JPG

To make the QBasic utility accessible, I added it to MY WORLD so that I could have quick access at the click of my mouse:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3655/QBasicMW.JPG

From the Taskbar on my Medion Windows XP Professional computer I opened QBasic in a Command Prompt window and studied the GUI (Graphical User Interface):

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3656/QB1.JPG

Pressing ENTER (per GUI Instruction) brought up the following view:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3657/QB2.JPG

Clicking FILE and then clicking the menu option EXIT closed the Command Prompt window and returned me to my Windows Desktop.

A QBasic exercise can be downloaded from http://westcompsci.pima.edu/cis100/ch_07/reverse3.bas and you will find that the Internet is rich with worksheets which will make you a quick hand with QBasic. Use the Google Mirror Site at www.theplaceforitall.com/googlex and I made that URL my Home Page to keep it handy for research. Here is the syntax for a Random Number Generator (RNG) of sorts. Actually, this is more of a number-scrambler - after you type in a 3-digit number, the routine will scramble the 3 digits and return a result:

GETNUM:
PRINT "Input a Three-Digit Number";
INPUT NUM
IF NUM - INT(NUM) <> 0 THEN GOTO GETNUM
IF NUM < 100 THEN GOTO GETNUM
IF NUM > 999 THEN GOTO GETNUM
LET QUOTIENT = NUM / 100
LET DIG3 = FIX(QUOTIENT)
LET NUM = NUM - 100 * DIG3
LET QUOTIENT = NUM / 10
LET DIG2 = FIX(QUOTIENT)
LET NUM = NUM - 10 * DIG2
PRINT NUM; DIG2; DIG3
PRINT DIG3 + 10 * DIG2 + 100 * NUM
END

The syntax must be followed exactly as it is shown above. Open QBasic and type in the syntax - click Run and then click START - hi-lited below:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3658/QBTest.JPG

The QBasic program executes the syntax lines and returns the following to a black and white screen. Take note that I have typed in 235 as a test 3-digit number:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3659/QBTest2.JPG

Pressing the ENTER key executes the code and the selected 3 digits are scrambled and the results returned:

http://forums.pcworld.com/servlet/JiveServlet/downloadImage/3660/QBTest3.JPG

*
Since the QBasic code input produces the planned results, you now know that Windows NT (2000/XP) not only runs the version of BASIC that Microsoft purchased from the Seattle company and used to create MS-DOS - but will also run GWBasic!

You need to join me in suggesting that PC World add MS-DOS as a regular Community Forum topic! I am going to send Private Messages to Steve Bass, Lincoln Spector, and Kellie.

Rabbit

*

Average User Rating
(0 ratings)




There are no comments on this document