December 1st, 2001, 03:04 PM
|
#2 (permalink)
|
| Ultimate Member
Join Date: Oct 2001
Posts: 21,019
|
How about when the application runs it looks for all the files then populates a Database on all of the files.
Also you could make a table with all of the directories in it, that way you dont have to hardcode it, if you want to add a directory just add it into the DB
If you're using VBS you could probably pretty easily setup a DB with Access...
You could then have the application return the highest index # of in the files table, and the app picks a random number sends it back to the DB for a request of the filename....
All you'd need is a table for the folders to look into, and a table for the filenames, to make it a bit more "normalized" you could have a folderId to link back to the folders table so you could just have the filename alone, and then prepend the folder structure to that filename retrieved from the folders table
Clear as mud?
Last edited by vass0922 : December 1st, 2001 at 03:06 PM.
|
| |