Improve company productivity with a Business Account.Sign Up
Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
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
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.