How can I get the date of when a file was created.
Don't Rate my posts.
I think the function is GetFileDateTime or something like that.
'Buzby' Visual Basic Developer "I'm moving to Theory. Everything works there."
You can use the FileSystemObject which is part of the scripting runtime, ie add a reference to Microsoft Scripting Runtime. VB Code: Dim fso As FileSystemObject Set fso = New FileSystemObject Debug.Print fso.GetFile("myfile.dat").[B]DateCreated[/B] You can also use, DateLastModified and DateLastAccessed among others. Cheers
Dim fso As FileSystemObject Set fso = New FileSystemObject Debug.Print fso.GetFile("myfile.dat").[B]DateCreated[/B]
Sweet, thanks.
Forum Rules