The date on a file

Results 1 to 2 of 2

Thread: The date on a file

  1. #1
    Nvigor8 Guest

    Default The date on a file

    How do I get the date of a file inside a folder where there are multiple files. I can get the dates of all the files but I only want one?

  2. #2
    Join Date
    Dec 1969

    Default RE: The date on a file

    &#060;%<BR>dim fso,file,filedate<BR>set fso=server.createobject("scripting.filesystemobjec t")<BR>set file=fso.getfile(server.mappath("yourfile.asp"))<B R>filedate=file.datelastmodified<BR>set file=nothing<BR>set fso=nothing<BR>response.write filedate<BR>%&#062;<BR><BR>hope this helps!! just a lil fso is all...

Posting Permissions

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