programming-examples/asp/More_Code_Snippets/List all files in a folder.asp

10 lines
210 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemObject")
Set objFolder=objFSO.GetFolder(Server.MapPath("/testfolder"))
For each myFiles in objFolder.files
%>
<% =myFiles.Name %><br>
<%
Next
%>