DirectoryContents


:) Just


' Change *.txt for the file spec you need :D
SHELL "dir *.txt /b >list.dir"
' Now you open the file list.dir for INPUT to read the directories,
' this prints a list:
f%=FREEFILE
OPEN "list.dir" FOR INPUT AS #f%
WHILE NOT EOF(f%)
LINE INPUT #f%, file$
PRINT file$
WEND
CLOSE #f%
' No longer needed
KILL "list.dir"


Bye!! na_th_an

Also see LongFileNames and DirReplacement


DirectoryContents - page last edited 2004-01-17 18:15:36 by 172.171.163.45 (home) (edit)
Blast WIKI - by RoboticBoy - edited and tweaked for our evil purposes by Hexadecimal Disaster