Thank you, George,
Yes, it is more convenient than GetFileTime, but they are still the very same dates. Any other ideas?
>>I need to replace the existing file with another one having the very same name. In this case API function GetFileTime gives the date created for the previous file, but not for the newly created. Date created stored as date modified until file actually modified by user. After that the date created seems unavailable.
>>
>>Any idea? I would appreciate your input.
>
>Couple of things.
>
>First, there's the Windows Script Host. The Scripting.FileSystemObject's File object will give you read-only access to the three date/time stamps: Created, modified, and last accessed.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>oFile = oFSO.GetFile(lcfile)
>? oFile.DateCreated
>? oFile.DateLastAccessed
>? oFile.DateLastModified
If you need to be able to modify one or more of these, I've some programming available in the download section that'll do this.