Posts: 440
Location: world traveller based in UK
|
Is there a way to break my list of files in a folder into chunks???
So instead of 60 files I can have 6 pages of ten or 3 pages of twenty or whatever ???
I have only ever done paging with recordsets from a database
I am writing code from scratch so anyone with any new code or code tips please advise.
Code:
<%
folder = "C:\"
set fso = CreateObject("Scripting.fileSystemObject")
set fold = fso.getFolder(folder)
for each file in fold.files
response.write file.name & "<br>"
next
set fold = nothing: set fso = nothing
%>
|