How to get the creation date & time of a particular file

Set f1 = CreateObject(“Scripting.FileSystemObject”)
Set f2 = f1.GetFile(“D:QTP_TESTtest.docx”)
S = “File was Created on: “&f2.DateCreated
Msgbox S

Content posted is based on learning or working experience, please leave comments if anything needs to be added or updated, discuss your queries on our, Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: