I am trying to list the contents of each folder using the following code. It works fine, but I would like to be able to access certain elements of oFolder.Files (see code below). Is this created as an array - if so, how could I list for example file 50-100 only?
Thanks - Nathan
Set oFSO = CreateObject("Scripting.FileSystemObject")
CurrentPath = Server.MapPath("/message_boards/posts/")
Set oFolder = oFSO.GetFolder(CurrentPath)
Set oFolderContents = oFolder.Files
For Each oFileItem in oFolder.Files
witeout file name
next