Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function returns the date and time for a file
Message
 
 
To
06/07/2001 11:49:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00527504
Message ID:
00527522
Views:
24
>hi all
>Which function returns the date and time when a file was crated?
>thank you
To get a creation date you can use FileSystemObject. Just remember that you have to have WSH installed in order to use it.
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