Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does anyone have a prototype getfiledate()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00319205
Message ID:
00319217
Vues:
10
>>Does anyone have a prototype function for getting the modify and last accessed dates of a file from VFP? Thanks
>>
>>Thanks
>>
>Hi Costas,
>
>My Winfiles class (under Win32 and Other APIs) in the download section does this, but I'd recommend the FileSystemObject of the Windows Script Host for this information.
oWSH = CREATEOBJECT('Scripting.FileSystemObject')
>oWSH = CREATEOBJECT('Scripting.FileSystemObject')
>oFile = oWSH.GetFile('C:\Autoexec.bat')
>? oFile.DateLastModified
>? oFile.DateLastAccessed
>? oFile.DateCreated
Definetely the way to go. Thanks

Costas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform