Con FileSystemObject non è difficile, puoi utilizzare questa funzione:
codice:
Function ShowFolderList(folderspec)
Dim fso, f, f1, fc, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.Files
For Each f1 in fc
s = s & f1.name
s = s & "
"
Next
ShowFolderList = s
End Function
L'uso è semplicissimo: per elencare i files contenuti nella cartella "pippo" residente nella root del server, basta scrivere:
codice:
response.write(ShowFolderList(Server.MapPath("/pippo")))