Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function returns the date and time for a file
Message
 
 
À
06/07/2001 11:49:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00527504
Message ID:
00527522
Vues:
25
>hi all
>Which function returns the date and time when a file was crated?
>thank you
To get a creation date you can use FileSystemObject. Just remember that you have to have WSH installed in order to use it.
oFys = CreateObject("Scripting.FileSystemObject")
oFile = oFys.GetFile(cFileName)
ltCreated  =  oFile.DateCreated
ltAccessed = oFile.DateLastAccessed
ltModified = oFile.DateLastModified
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform