Results 1 to 5 of 5

Thread: how can i check the timestamp on a file?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Colorado State University
    Posts
    25

    how can i check the timestamp on a file?

    i want to display the file with the most recent timestamp. is there a way to see what the last-edited times ar on the files? thanks
    -SiM

  2. #2
    Matthew Gates
    Guest
    Use the FileDateTime function.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Colorado State University
    Posts
    25
    i'm still pretty new to vb... (only been using it for about two weeks) so can you tell me a little more how to use that function? thanks
    -SiM

  4. #4
    Matthew Gates
    Guest
    This is how you use the FileDateTime function.


    Code:
    MsgBox FileDateTime("C:\Autoexec.bat") 'returns 5/12/01 4:59:18 PM 
    (this is when the file was last edited on my computer)

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Colorado State University
    Posts
    25
    thanks a bundle... i didn't know if i had to declare a function or anything. thanks again for the help.
    -SiM

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