View Full Version : INDEX OF page (ie. linking to a directory w/o index.htm)

02-18-2003, 04:18 PM

When you link to a directory, and there is no index.htm or index.html or home.htm (in other words, when there is no default page to load) the contents of the folder show up in a list.

I was just curous if it were possible to create a page, index.htm, that would list out the files, just as linking to a directory w/o an index page would. In other words, I want to be able to recreate that INDEX OF page.

And I'm hoping that whenever a file is added or removed from the directory, the page will be updated accordingly.

Is that possible?

02-19-2003, 01:41 PM
It's entirely possible, using a server-side lanugage. ASP can, for example, access the server's directory structure using the FileSystemObject.

02-20-2003, 03:52 PM
here are the details for doing this in asp: