Free for PREMIUM members
[Webinar] Streamline your web hosting managementRegister Today
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Get the folder object associated with the directory
Set objFolder = objFSO.GetFolder("c:\root\sites\website.com\files")
'Loop through the Files collection
For Each objFile in objFolder.Files
Response.Write "<a href=""/files/"&objFile.Name &""">"&objFile.Name &"</a>""
Set objFolder = Nothing
Set objFile = Nothing
Set objFSO = Nothing
Open in new window
The revolutionary project management tool is here! Plan visually with a single glance and make sure your projects get done.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $159.20.
Premium members get this course for $37.50.
Premium members get this course for $151.20.
Premium members get this course for $12.50.
Premium members get this course for $108.00.