isaaclloyd
10-02-2005, 08:41 AM
What I am trying to accomplish is a script that will read through all the FOLDERS in a FOLDER and read a specific TEXTFILE in that folder. So something like this:
MYFOLDER = "/stats/"
MYTEXTFILE = "data.txt"
READ ALL FOLDERS IN MYFOLDER
WHILE IN A FOLDER READ MYTEXTFILE
RESPONSE.WRITE MYTEXTFILE
LOOP UNTIL NO MORE FOLDERS
I am also trying to figure out just how to get a list of names of all the folders in a folder. Any comments, or suggestions would greatly be appreciated. Thanks.
MYFOLDER = "/stats/"
MYTEXTFILE = "data.txt"
READ ALL FOLDERS IN MYFOLDER
WHILE IN A FOLDER READ MYTEXTFILE
RESPONSE.WRITE MYTEXTFILE
LOOP UNTIL NO MORE FOLDERS
I am also trying to figure out just how to get a list of names of all the folders in a folder. Any comments, or suggestions would greatly be appreciated. Thanks.