G
I am trying to use the following ASP code to examine the file names in
a folder:
Dim fso, f, fl, s, fs
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder("C:\Inetpub\wwwroot\MySite\subfolder")
Set fs = f.Files
For Each fl in fs
s = fl.Name 'Object Required error occurs here!
Response.Write(s)
Next
Set fso = Nothing
The asp page returns the 'Object Required' error on the line, "s =
fl.Name".
Why?
Can anyone shed any light on this?
Thanks
a folder:
Dim fso, f, fl, s, fs
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder("C:\Inetpub\wwwroot\MySite\subfolder")
Set fs = f.Files
For Each fl in fs
s = fl.Name 'Object Required error occurs here!
Response.Write(s)
Next
Set fso = Nothing
The asp page returns the 'Object Required' error on the line, "s =
fl.Name".
Why?
Can anyone shed any light on this?
Thanks