Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting file attributes
Message
De
09/09/2006 03:45:50
 
 
À
08/09/2006 14:33:15
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01152363
Message ID:
01152525
Vues:
27
thanks, Erick
Should I load anything to use it in runtime mode ?

>Hi Alessio,
>
>>how can I get informations about a file size and the date of creation ?
>>I want to test if there were any changes in the file...
>>thank you
>>Alessio
>

>
>You can to use FSO, thus:
>loFSO = Createobject("Scripting.FileSystemObject")
>loFile = loFSO.GetFile("yourFile.any")    && Here: put complete path and name
>
>MESSAGEBOX(loFile.DateCreated)
>MESSAGEBOX(loFile.DateLastAccessed)
>MESSAGEBOX(loFile.DateLastModified)
>
>MESSAGEBOX(TRANSFORM(loFile.Size) + " bytes")
>
>MESSAGEBOX(loFile.Type)
>I hope this helps you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform