OK, this is really starting to wind me up now.
I'm trying to get the contents of a folder with the following code:
I'm getting the old favourite 'Microsoft VBScript runtime error '800a004c' Path not found /weddings.asp, line 49'.
The folder weddings absolutely exists is in the same directory as the code file - I'm displaying images from that same folder in the same page.
any takers?
I'm trying to get the contents of a folder with the following code:
Code:
Dim fs, f, f1, fc, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder("weddings")
Set fc = f.Files
For Each f1 in fc
s = s & f1.name
s = s & vbCrLf
Next
Response.Write s
I'm getting the old favourite 'Microsoft VBScript runtime error '800a004c' Path not found /weddings.asp, line 49'.
The folder weddings absolutely exists is in the same directory as the code file - I'm displaying images from that same folder in the same page.
any takers?