Results 1 to 2 of 2

Thread: File Name Sorting

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    250

    File Name Sorting

    Hi All,

    I have a drive (lets call it "H") that will have a dynamic list of folders within it. The folders will work off of a date naming convention, example 20071105.

    I need to be able to sort the contents of the "H" drive and return the oldest folder using a .vbs script.

    For Example:

    "H" Drive contents:

    20071119
    20071105
    20070509
    20071126
    20071203
    20070912
    20071112

    I would like to return the oldest folder name. In this case, 20070509.

    Any help would greatly be appreciated. Thank you!

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: File Name Sorting

    Please do not post duplicate threads, especially in the wrong forum section.

    The original thread (in the VBScript forum) can be found here.

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