Hi, does anyone know a quick and easy way to loop through every file in a directory and open it? (Then get some data, close the file, and move to the next one)
Thanks.
dir=Server.MapPath(".")
set fso=Server.CreateObject("Scripting.FileSystemObject")
set f=fso.GetFolder(dir)
set files=f.Files
for each file in files
fname=file.Name
'code here
next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.