Hi all,
I have succeded an asp page that shows a list of files of a certain directory, using this code found on a site somewhere:
set fs = createObject("scripting.filesystemobject")
set root = fs.getFolder(ReqDir)
Set colFiles = root.Files
For Each objFile in colFiles
Set f = fs.GetFile(objFile)
ShowFileInfo = f.DateCreated
response.write "&ShowFileInfo&"</b></a> "
It seems that files are sorted by name, and I wish to have them by date, reverse order...
Hope someone can help
Thanks
I have succeded an asp page that shows a list of files of a certain directory, using this code found on a site somewhere:
set fs = createObject("scripting.filesystemobject")
set root = fs.getFolder(ReqDir)
Set colFiles = root.Files
For Each objFile in colFiles
Set f = fs.GetFile(objFile)
ShowFileInfo = f.DateCreated
response.write "&ShowFileInfo&"</b></a> "
It seems that files are sorted by name, and I wish to have them by date, reverse order...
Hope someone can help
Thanks
Comment