Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting file attributes
Message
From
09/09/2006 03:45:50
 
 
To
08/09/2006 14:33:15
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01152363
Message ID:
01152525
Views:
26
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform