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

Set f1 = CreateObject("Scripting.FileSystemObject")
Set f2 = f1.GetFile("D:\QTP_TEST\test.docx")
S = "File was Created on: "&f2.DateCreated
Msgbox S

No comments:

Post a Comment