Reading form the DOS enviornment

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Reading form the DOS enviornment

Post by {Nathan} »

OK, ill make it simple with an example. Lets say I type dir and get this (I really do on me newly formatted laptop)

AUTOEXEC.BAT
COMMAND.COM
QBASIC [DIR]
EDIT.BAT
RUN.BAT

Now, how do I get that information? Like, lets say I wanna see all the dirs. How can I get them? I hope this made sense; I did as much second hand research as possible (meh). :roll:
Image
lurah.

Post by lurah. »

Lol, sorry but im not sure what you mean exactly but

DIR /?

might help.
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

Code: Select all

SHELL "Dir *.* > temp.ttp"
Open "temp.ttp" for intput as #1
'read
Close #1
You might want to look into the DIR switches, such as: /OGN and /-P etc...
I have left this dump.
Post Reply