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:
00319217
Views:
11
>>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
Definetely the way to go. Thanks

Costas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform