hello everyone, question about the following code. Is there a way to sort these files by date descending? i.e. the files that display from this code are weekly timesheets and named by the date, so january's would be 1-1-2004 but since they are sorting by name, the most recent is at the bottom. Any thoughts would be appreciated.
Code:
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Dim objFolder
Set objFolder = objFSO.GetFolder("D:\[URL unfurl="true"]www\test\updates")[/URL]
Dim objFile
For Each objFile in objFolder.Files
Response.Write "<IMG SRC=""../images/more_arrows.gif""> <a href='" & objFile.Name & "' target=new>" & objFile.Name & "</a>"
Next