Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting file attributes
Message
From
09/09/2006 19:07:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/09/2006 03:45:50
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01152363
Message ID:
01152594
Views:
24
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
Previous
Reply
Map
View

Click here to load this message in the networking platform