Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date of creation of a file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00600132
Message ID:
00600223
Vues:
27
>>>>Right-clicking on a file, using Windows-Explorer, and then selecting we get some information about the file itself, included the dates the file was created, modified, accessed.
>>>>I have the need to get the date of CREATION of the file (not the date of the last modification). The files to test aren't VFP tables.
>>>>Is there a way to get the date (preferrebly using VFP)?. Adir() and Dir() don't give me the information.
>>>>
>>>>TIA
>>>>Bruno Maddalozzo
>>>
>>>To get a creation date you can use FileSystemObject.
>>>
oFys = CreateObject("Scripting.FileSystemObject")
>>>oFile = oFys.GetFile(cFileName)
>>>ltCreated  =  oFile.DateCreated
>>>ltAccessed = oFile.DateLastAccessed
>>>ltModified = oFile.DateLastModified
or download file#9316 if WSH is not an option.
>>
>>Geez, Sergey, I wish I knew the numbers of my own stuff.:-)
>
>It's easy. Just click on Account setup button on UT toolbar and than on Contribution summary button. :)

Oh I know, but I'm lazy.< bg >
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform