Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last Access Time of a File?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00316411
Message ID:
00316419
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform