Results 1 to 2 of 2

Thread: FileSystemObject

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613

    FileSystemObject

    Using FileSystemObject, I obtain the folder.
    Then I can access all file in this folder using:
    Code:
    For each objFile in objFolder.Files
     Response.Write objFile.Name & "<br>"
    Next
    But the result is in random order. How can I sort the file based on Created Date using objFile.DateCreated property?

    Thanks.

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Throw the filename and date created into a 2d array
    sort the array based on the date and then do the response.write

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width