Earth Skater Online Store Hosting
 

1 (877) 627-2492 Contact Us 

 
       
 
 

Author: Staff
EarthSkater.net
This is a small example in ASP on listing the files in a specific folder using the Filesystem object

dim thefolder, strfile

thefolder=server.mappath("\") &"/images/"

set fs = server.createobject("Scripting.FileSystemObject")
set f = fs.getfolder(thefolder)
set fl = f.files    ' list of files

for each strfile in fl
    response.write (strfile.name & "<br>")
next

set fs = nothing
set f = nothing
set fl = nothing


 


Bookmark this on Delicious

 
 

2018

Earth

Skater