Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date of creation of a file
Message
 
 
À
03/01/2002 02:44:01
Bruno Maddalozzo
Informatica Aziendale
Arsie, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00600132
Message ID:
00600216
Vues:
23
>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform