Dynamically Enumerating Files
Posted on 1998-12-07
I'm looking to make a real simple script. Heres what I want to accomplish.
Have the script look in a specific directory, enumerate all the ".htm" files and then output in HTML links to those pages in that directory. I know it's real easy to do, but I have never worked with this before. It was kind of shoved into my lap.
This is going to be on an NT server running IIS4.0 and Active State. I'm really unsure on how to enumerate the files, I think I can figure out the HTML output by example, but I haven't seen any examples that would help me out with extracting the file names and such. If anyone has an example similiar to this or can just help me out it would be really appreciated. Thanks.