>Looks like there is an API call named GetFileTime that will return the last access time of a file. The piece I need is the last access time which is not available from ADIR() or FDATE().
>
>I could use some help with API call or calls required to make GetFileTime work. Is there an alternate method available such as the Windows Script Host?
>
>An example of either approach would be greatly appreciated.
Hi Tom,
My Winfiles class does this (in the download section), but then so does WSH, like this:
oFso = CREATEOBJECT('Scripting.FileSystemObject')
oFile = oFso.GetFile('c:\foo.txt')
? oFile.DateLastAccessed
Note that the time portion of the date/time is always midnight of the day. Access date/times are simply stored by date.
George
Ubi caritas et amor, deus ibi est