Free for PREMIUM members
[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now
Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
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
Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.