>>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