Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date of creation of a file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00600132
Message ID:
00600223
Views:
20
>>>>Right-clicking on a file, using Windows-Explorer, and then selecting we get some information about the file itself, included the dates the file was created, modified, accessed.
>>>>I have the need to get the date of CREATION of the file (not the date of the last modification). The files to test aren't VFP tables.
>>>>Is there a way to get the date (preferrebly using VFP)?. Adir() and Dir() don't give me the information.
>>>>
>>>>TIA
>>>>Bruno Maddalozzo
>>>
>>>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
or download file#9316 if WSH is not an option.
>>
>>Geez, Sergey, I wish I knew the numbers of my own stuff.:-)
>
>It's easy. Just click on Account setup button on UT toolbar and than on Contribution summary button. :)

Oh I know, but I'm lazy.< bg >
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform