Page 1 of 1

Reading form the DOS enviornment

Posted: Mon Jan 10, 2005 5:17 pm
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:

Posted: Mon Jan 10, 2005 11:39 pm
by lurah.
Lol, sorry but im not sure what you mean exactly but

DIR /?

might help.

Posted: Tue Jan 11, 2005 1:25 am
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...