Page 2 of 2 [ 23 posts ]  Go to page Previous  1, 2

ahayes
Veteran
Veteran

User avatar

Joined: 2 Dec 2006
Gender: Male
Posts: 9,506

20 Apr 2007, 6:58 pm

Actually, w95 has qbasic in an extras folder on its CD



lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 76
Gender: Male
Posts: 9,795
Location: Somerset UK

20 Apr 2007, 7:04 pm

That must be why I was unsure. I think it was that I installed it, then I was confused when on other peoples W95 machines, they didn't have it. (I.e. they did, but not installed.)


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


nitro2k01
Snowy Owl
Snowy Owl

User avatar

Joined: 5 Feb 2007
Gender: Male
Posts: 173

20 Apr 2007, 7:57 pm

TheMachine1 wrote:
ahayes wrote:
Kcihtred2 wrote:
DOS is awsome!! ! but it sucks... i much rather have something run off of hexidecimal than binary


There isn't a computer in existence that runs off hex, it's all binary. Hex is just a convenient representation of binary data.


True processing is binary but I think memory chips still use hex based storage because it uses fewer transistors and it merely decodes/encodes at its interface.
Modern memory chips probably store the data in rows of 32 bits. But that's got nothing to with hexadecimal data. The hexadecimal system is a system with 16 symbols, and translated into a memory chip that'd mean that the chip can hold 16 states (ie 16 different voltage levels) for every position, which simply isn't the case.

bats: I use them for simple things, but they're nowhere near the beauty of shell scripts.
For example, here's my mdx.bat. (If you don't see what it does, you probably don't need it anyway)
Code:
@echo off
mkdir %1 %2 %3 %4 %5 %6 %7 %8 %9
start %1 %2 %3 %4 %5 %6 %7 %8 %9


qbasic: I know most of the language by heart after using it for years, but I hardly use it nowadays. (Although I've written a program for collecting e-mail addresses for a newsletter, for a local chip music club that I'm organizing)



ahayes
Veteran
Veteran

User avatar

Joined: 2 Dec 2006
Gender: Male
Posts: 9,506

20 Apr 2007, 8:04 pm

the batch file you have makes several directory and them opens them in Windows Exploder



lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 76
Gender: Male
Posts: 9,795
Location: Somerset UK

21 Apr 2007, 4:11 am

nitro2k01 wrote:
bats: I use them for simple things, but they're nowhere near the beauty of shell scripts.
For example, here's my mdx.bat. (If you don't see what it does, you probably don't need it anyway)
Code:
@echo off
mkdir %1 %2 %3 %4 %5 %6 %7 %8 %9
start %1 %2 %3 %4 %5 %6 %7 %8 %9

I have to admit, I haven't a clue what this batch file is supposed to do.

You pass it some indeterminate number of parameters, if none, it falls over.

If you pass more than nine, it ignores the rest.

It maybe creates the first up to nine as directories, below whatever directory you happen to have invoked the bat file from.

I can't recall what MSDOS does when you attempt to create a directory that already exists. Probably runs crying to its mama?

It then invokes whatever "start" is, in a similar vein, so far as parameter count goes. From ahayes we have the idea that this might be to run explorer. In actuality, it will follow whatever MSDOS happens to find as a result of its laughable "rules". Typically, that might be to run the local START.BAT, which may or may not understand the parameters.

What I always found wildly incensing (and I mean that - it annoys me no end), is that MSDOS will prefer to run the local START.COM and if that doesn't exist, the local START.EXE, only finally looking for a BAT file. I never could see any logic to this - totally mad. If I want to "front end" an existing command, I'd like to do that with a quick BAT file. Mind you, if I'm a virus writer, I can surreptitiously override a transparent BAT file with an obscure EXE or COM. That makes sense?


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


ahayes
Veteran
Veteran

User avatar

Joined: 2 Dec 2006
Gender: Male
Posts: 9,506

21 Apr 2007, 9:29 pm

"start" does whatever Windows does when you doubleclick on the file you pass in.

"start some.mp3" would open the program that plays mp3s
"start some.txt" would open some.txt in notepad



Saepius
Raven
Raven

User avatar

Joined: 29 Nov 2006
Gender: Male
Posts: 106

21 Apr 2007, 11:15 pm

I don't think that that batch file will necessarily work as intended. If you run mdx a b c, then that will be equivalent to running mkdir a b c and start a b c. The first command will create three directories, named a b and c respectively. The second command will open the directory a in an explorer window. b and c will be interpreted as parameters to explorer.