ASP FilesColección
Manual de referencia completo del objeto Folder
La colección Files devuelve una colección compuesta por todos los archivos de la carpeta especificada.
Sintaxis
FolderObject.Files
Ejemplo
<%
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
%>
Salida:
test_adv.txt
guestbook.txt
links.txt
links2.txt
textads.txt
textfile.txt
guestbook.txt
links.txt
links2.txt
textads.txt
textfile.txt
Manual de referencia completo del objeto Folder Otras extensiones