Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting file attributes
Message
De
09/09/2006 19:07:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/09/2006 03:45:50
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:
01152594
Vues:
25
Alessio,
Scripting host should be enabled and some admins disable it on purpose (like me).
Cetin

>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.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform