Ancient QBASIC 4.5

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

Post Reply
blackbox_dev
Senior Member
Posts: 1906
Joined: Sun Jan 15, 2006 5:19 pm
Location: Formerly known as iam7805

Ancient QBASIC 4.5

Post by blackbox_dev »

Does anyone still use this for programming? I'm trying some stuff, and want to know something.

I know that I can execute a command from the command prompt in my program using the SHELL command (I am trying to get the DOS version using SHELL "VER"). But I need to get that info and put it in a string. I tried SHELL "VER">VERSION$ but it didn't work. I'm out of ideas now. Can anybody help me?

MS-DOS is the r0x0r5!!!!11
I'd imagine right now you wish you were a cuttlefish...
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Post by marshallh »

You could make a BAT file and put this in it:

@echo off
ver << version.txt
type version.txt

This will create a file called version.txt and you should be able to load that into QBasic.
Image
blackbox_dev
Senior Member
Posts: 1906
Joined: Sun Jan 15, 2006 5:19 pm
Location: Formerly known as iam7805

Post by blackbox_dev »

wow, why didn't I think of that!?!? so simple but effective :P

DO
PRINT "THANKS MARSHAL!"
LOOP
I'd imagine right now you wish you were a cuttlefish...
Sparkfist
Forum Administrator
Posts: 6754
Joined: Tue Apr 20, 2004 7:12 am
Location: Michigan

Post by Sparkfist »

I don't know what verion of QBASIC it was but I used it in my Intro to Programming class this past fall. If you want it I can email it to you, it's only about 6MB in size.
vskid wrote:Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.
blackbox_dev
Senior Member
Posts: 1906
Joined: Sun Jan 15, 2006 5:19 pm
Location: Formerly known as iam7805

Post by blackbox_dev »

im fine with what i have right now, thnx.
I'd imagine right now you wish you were a cuttlefish...
MM007
Moderator
Posts: 1175
Joined: Mon Apr 05, 2004 6:01 pm
Location: In the wilds of suburbia...

Post by MM007 »

Sparkfist wrote:I don't know what verion of QBASIC it was but I used it in my Intro to Programming class this past fall. If you want it I can email it to you, it's only about 6MB in size.
...Would you happen to be at a specific Northeast Ohio college? O.o (had the same software in the same nammed course.)
Warranty-Voiding fun!

Image
Sparkfist
Forum Administrator
Posts: 6754
Joined: Tue Apr 20, 2004 7:12 am
Location: Michigan

Post by Sparkfist »

Ah, no. I live and attend school in Michigan. Baker College is were I go.
vskid wrote:Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.
Post Reply