Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function returns the date and time for a file
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00527504
Message ID:
00527519
Views:
18
>>hi all
>>Which function returns the date and time when a file was crated?
>>thank you
>
>FDATE(cFileName ,1) returns the last modification DateTime for a file.

To get a creation date you can use FileSystemObject.
oFys = CreateObject("Scripting.FileSystemObject")
oFile = oFys.GetFile(cFileName)
ltCreated  =  oFile.DateCreated
ltAccessed = oFile.DateLastAccessed
ltModified = oFile.DateLastModified
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform