Hi Rod,

Quite coincidentally, just two days before receiving your tip on how to get
a file's creation time and access time, I needed to do exactly that, and
found a totally different solution:

You need a reference to the Microsoft Scripting Runtime library
(SCRRUN.DLL).

    'Create a FileSystemObject
    Dim FSO  As New FileSystemObject

    'Create a File object
    Dim mFile As File

    'Get the required file
    Set mFile = FSO.GetFile(FileName)

    'Get the dates
    CreationDate = mFile.DateCreated
    ModifyDate = mFile.DateLastModified

    'release the objects
    Set mFile = Nothing
    Set FSO = Nothing

Due to the nature of the program I was writing at the time, I defined FSO
globally, and mFile on a procedure level.

The disadvantage of my method is that you require the additional reference
to the scripting runtime library, but the advantage is that I don't have to
do any conversions. The file object also gives me access to all sorts of
properties and methods, like Open, Move, Copy and Delete, Attributes,
ShortName (Dos name), Path and many more.

I don't know whether this runtime library is available to all VB Programmers
though. I got it with Visual Studio Enterprise Edition, and I suspect that
Standard Edition users will not have this. I also suspect that your
GetFileTime API function could in some cases be much faster than the
FileSystemObject, but I have not tested this.

Regards,
    Robert Terblanche
