Displaying latest file in a directory

Discussion in 'ASP General' started by maxhauser@mailcity.com, Jun 24, 2005.

  1. Guest

    I have quick little page that I need to create but its sounds like the
    concept is not so quick.

    I have a folder with eight or ten files that can be displayed in a
    browser. I need to display the file with the latest creation date. I
    imagine there is some kind of ASP function that could like at the
    filename's date and pick the file that meets the criteria. How can I do
    this?
     
    , Jun 24, 2005
    #1
    1. Advertisements

  2. wrote:
    > I have quick little page that I need to create but its sounds like the
    > concept is not so quick.
    >
    > I have a folder with eight or ten files that can be displayed in a
    > browser. I need to display the file with the latest creation date. I
    > imagine there is some kind of ASP function that could like at the
    > filename's date and pick the file that meets the criteria. How can I
    > do this?


    Do a search at www.aspfaq.com for filesystemobject. You'll see plenty of
    examples. Do the same at msdn.microsoft.com/library.

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
     
    Bob Barrows [MVP], Jun 24, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    7,891
    Roland de Ruiter
    Jul 19, 2006
  2. Kali K E

    Copying latest version of the file

    Kali K E, Sep 12, 2003, in forum: Python
    Replies:
    0
    Views:
    333
    Kali K E
    Sep 12, 2003
  3. Hank
    Replies:
    3
    Views:
    568
    Tim Golden
    Oct 30, 2003
  4. Javier
    Replies:
    1
    Views:
    193
    vMike
    Feb 27, 2004
  5. dave

    how to pick up latest file?

    dave, Jul 13, 2004, in forum: ASP General
    Replies:
    2
    Views:
    252
    Jeff Cochran
    Jul 13, 2004
  6. MM User

    Seach Files for latest file

    MM User, Nov 12, 2007, in forum: ASP General
    Replies:
    0
    Views:
    172
    MM User
    Nov 12, 2007
  7. Rajeswar reddy Gaulla
    Replies:
    2
    Views:
    225
  8. Mmcolli00 Mom
    Replies:
    2
    Views:
    236
    William James
    Feb 10, 2009
Loading...