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. Advertising

  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. Advertising

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:
    6,873
    Roland de Ruiter
    Jul 19, 2006
  2. Hank
    Replies:
    3
    Views:
    400
    Tim Golden
    Oct 30, 2003
  3. Javier
    Replies:
    1
    Views:
    118
    vMike
    Feb 27, 2004
  4. Rajeswar reddy Gaulla
    Replies:
    2
    Views:
    150
  5. Mmcolli00 Mom
    Replies:
    2
    Views:
    140
    William James
    Feb 10, 2009
Loading...

Share This Page