Hey all,
Have done a dump of files in a folder using:
set fileSYS=server.createObject("scripting.FileSystemObject"
set folderName = fileSYS.GetFolder("c:\pathtofolder"
set allFiles = folderName.files
for each file in allFiles
response.write file.name & "<br>"
next
the output is:
1-1-template.asp
1-2-template.asp
1-10-template.asp
1-9-template.asp
1-8-template.asp
1-4-template.asp
1-5-template.asp
1-6-template.asp
1-7-template.asp
1-3-template.asp
Which is perfect EXCEPT for the ordering.
They were created in numerical (1-1 then 1-2 etc) order, so how does the array determine in what order to suck them in?
Steve Davis
hey.you@hahaha.com.au
Have done a dump of files in a folder using:
set fileSYS=server.createObject("scripting.FileSystemObject"
set folderName = fileSYS.GetFolder("c:\pathtofolder"
set allFiles = folderName.files
for each file in allFiles
response.write file.name & "<br>"
next
the output is:
1-1-template.asp
1-2-template.asp
1-10-template.asp
1-9-template.asp
1-8-template.asp
1-4-template.asp
1-5-template.asp
1-6-template.asp
1-7-template.asp
1-3-template.asp
Which is perfect EXCEPT for the ordering.
They were created in numerical (1-1 then 1-2 etc) order, so how does the array determine in what order to suck them in?
Steve Davis
hey.you@hahaha.com.au