collection de fichiers ASP
collection de fichiers pour retourner une collection du dossier spécifié de tous les fichiers.
grammaire
FolderObject.Files
Exemples
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")
for each x in fo.files
'Print the name of all files in the test folder
Response.write(x.Name & "<br>")
next
set fo=nothing
set fs=nothing
%>
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")
for each x in fo.files
'Print the name of all files in the test folder
Response.write(x.Name & "<br>")
next
set fo=nothing
set fs=nothing
%>
sortie:
test_adv.txt
guestbook.txt
links.txt
links2.txt
textads.txt
textfile.txt
guestbook.txt
links.txt
links2.txt
textads.txt
textfile.txt
Dossier complet Object Reference