I'm trying to get a list of file names from a folder into an array and use them as links in my script. I'm new to VBScript and I can't seem to be able to get at the file names... any suggestions? here's the code
Dim FSO
Set FSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
Dim Folder
dir = Server.MapPath( "./Slides")
Set Folder = FSO.GetFolder(d ir)
Dim File
For Each File in Folder.Files
Slides(i) = File
i = i+1
Response.Write Slides(i).name& "<br>"
Next
is there some kind of cast i have to do? I'm totally lost guys
Dim FSO
Set FSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
Dim Folder
dir = Server.MapPath( "./Slides")
Set Folder = FSO.GetFolder(d ir)
Dim File
For Each File in Folder.Files
Slides(i) = File
i = i+1
Response.Write Slides(i).name& "<br>"
Next
is there some kind of cast i have to do? I'm totally lost guys