Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is actual file create date?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00740413
Message ID:
00740434
Vues:
20
>I need to replace the existing file with another one having the very same name. In this case API function GetFileTime gives the date created for the previous file, but not for the newly created. Date created stored as date modified until file actually modified by user. After that the date created seems unavailable.
>
>Any idea? I would appreciate your input.

Couple of things.

First, there's the Windows Script Host. The Scripting.FileSystemObject's File object will give you read-only access to the three date/time stamps: Created, modified, and last accessed.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFile = oFSO.GetFile(lcfile)
? oFile.DateCreated
? oFile.DateLastAccessed
? oFile.DateLastModified
If you need to be able to modify one or more of these, I've some programming available in the download section that'll do this.
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