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
{Nathan}
Veteran
Posts: 1169 Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:
Post
by {Nathan} » Mon Jan 10, 2005 5:17 pm
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).
lurah.
Post
by lurah. » Mon Jan 10, 2005 11:39 pm
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 » Tue Jan 11, 2005 1:25 am
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.