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,
Share the post with others if find useful,
Any queries?, leave comments or discuss on our, Thanks!

Leave a Reply

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