Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last Access Time of a File?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00316411
Message ID:
00316426
Views:
14
George, thanks for the reply. WSH sounds like a great resource and something that I need to learn.

>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform