Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting file attributes
Message
From
08/09/2006 14:33:15
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
08/09/2006 12:19:35
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01152363
Message ID:
01152436
Views:
30
This message has been marked as a message which has helped to the initial question of the thread.
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.
Erick
Força Sempre!
Strength Always!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform