Hi all,
I want to know the Creation Date of a File (statical creation date) and NOT the date it was copy to my computer (general creation date). If I use this code, I obtein then copy date ... How can I know the Creation one?
thanks
Dim fSo As Object
Dim MyFile as string
Dim MyDate as date
MyFile = "c:\ThisFile.pdf"
Set fSo = CreateObject("Scripting.FileSystemObject")
MyDate = fSo.getfile(MyFile).datecreated
MsgBox "Creation Date: " & MyDate
Set fSo = Nothing
I want to know the Creation Date of a File (statical creation date) and NOT the date it was copy to my computer (general creation date). If I use this code, I obtein then copy date ... How can I know the Creation one?
thanks
Dim fSo As Object
Dim MyFile as string
Dim MyDate as date
MyFile = "c:\ThisFile.pdf"
Set fSo = CreateObject("Scripting.FileSystemObject")
MyDate = fSo.getfile(MyFile).datecreated
MsgBox "Creation Date: " & MyDate
Set fSo = Nothing