Filesystem Object Files collection

Results 1 to 2 of 2

Thread: Filesystem Object Files collection

  1. #1
    Justin Ammerlaan Guest

    Default Filesystem Object Files collection

    When iterating through the filesystem object&#039;s file collection of a specific folder, i get results sorted based on their last modification dates, rather than sorted Alphabetically on the file name.<BR>Any help as to what the property is i need to set on the filesystem objects&#039; folder property would be greatly appreciated!<BR>here is the code i am trying to execute:<BR><BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR>Set f = fs.GetFolder(file) &#039;file is folder location<BR>Set fc = f.Files<BR><BR>For Each f1 in fc<BR>&#039;obviously this will contain some complicated code!<BR> Response.Write(<BR>next<BR><BR>this is returning a list of filenames that are not sorted alphabetically<BR><BR>Thanks for your help<BR>

  2. #2
    Join Date
    Dec 1969

    Default FAQ

Posting Permissions

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