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