Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does anyone have a prototype getfiledate()
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00319205
Message ID:
00319212
Views:
14
>Does anyone have a prototype function for getting the modify and last accessed dates of a file from VFP? Thanks
>
>Thanks
>
Hi Costas,

My Winfiles class (under Win32 and Other APIs) in the download section does this, but I'd recommend the FileSystemObject of the Windows Script Host for this information.
oWSH = CREATEOBJECT('Scripting.FileSystemObject')
oWSH = CREATEOBJECT('Scripting.FileSystemObject')
oFile = oWSH.GetFile('C:\Autoexec.bat')
? oFile.DateLastModified
? oFile.DateLastAccessed
? oFile.DateCreated
George

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

Click here to load this message in the networking platform