List Images or Other Files in a Folder Using ASP+FileSystemObject
This is a simple script that lists the files present in the specified folder (directory). It uses VBScript's FileSystemObject to scan and return list of files in the specified folder that match specified filename extension(s). In addition to file names, the script also shows file size and last modified date. The example also demonstrates a naive use of RegExp object to match multiple file extensions. A standalone VBScript function plus an accompanying ASP example to display the date is provided.