Last updated: August 26, 2026.
A FileSystemObject Folder object represents a server-side directory and exposes its files, subfolders, dates, size, and attributes.
List files in a configured folder
<%
Dim fso, folder, file
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(Server.MapPath("/App_Data/reports"))
For Each file In folder.Files
Response.Write Server.HTMLEncode(file.Name) & "<br>"
Next
Set folder = Nothing
Set fso = Nothing
%>Useful properties include Name, Path, DateCreated, DateLastModified, Files, SubFolders, and Size. Use only application-controlled paths and grant the IIS identity the minimum permissions required.