programming-examples/asp/More_Code_Snippets/List all files in a folder.asp
2019-11-18 14:25:58 +01:00

10 lines
210 B
Plaintext

<%
Set objFSO=Server.CreateObject("Scripting.FileSystemObject")
Set objFolder=objFSO.GetFolder(Server.MapPath("/testfolder"))
For each myFiles in objFolder.files
%>
<% =myFiles.Name %><br>
<%
Next
%>