Seach Files for latest file

Discussion in 'ASP General' started by MM User, Nov 12, 2007.

  1. MM User

    MM User Guest

    Hi,

    I have a directory which I would like to search and list the latest file
    together with it date and time, I've found the following from w3schools for
    a particular file but do not know how to search a folder and sub folders for
    the latest file:

    dim fs,f
    set fs=Server.CreateObject("Scripting.FileSystemObject")
    set f=fs.GetFile("c:\test.txt")
    Response.Write("File last modified on: ")
    Response.Write(f.DateLastModified)
    set f=nothing
    set fs=nothing


    Any help is appreciated!
     
    MM User, Nov 12, 2007
    #1
    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. Chris Lincoln
    Replies:
    3
    Views:
    446
    Chris Lincoln
    Jul 19, 2006
  2. jambiani
    Replies:
    4
    Views:
    379
    Andy Dingley
    Sep 4, 2006
  3. Kevin
    Replies:
    1
    Views:
    322
    Victor Bazarov
    Mar 8, 2006
  4. sherry
    Replies:
    0
    Views:
    418
    sherry
    Apr 15, 2009
  5. Hans Müller

    Seach for encrypted socket wrapper

    Hans Müller, Jun 2, 2009, in forum: Python
    Replies:
    3
    Views:
    339
    Lawrence D'Oliveiro
    Jun 3, 2009
Loading...

Share This Page