How to get created date and time of a particular file?
Set f1 = CreateObject("Scripting.FileSystemObject")
Set f2 = f1.GetFile("E:\Lak.txt")
S = "File was Created on: "&f2.DateCreated
Msgbox S
Output->File was Created on: 10/12/2008 3:45:16 PM
How to get last Modified date and time of a particular file?
Set f1 = CreateObject("Scripting.FileSystemObject")
Set f2 = f1.GetFile("E:\Lak.txt")
S = "File was Last Modified on: "&f2.Datelastmodified
Msgbox S
Output->File was Last Modified on: 10/12/2008 3:51:24 PM
How to get last accessed date and time of a particular file?
Set f1 = CreateObject("Scripting.FileSystemObject")
Set f2 = f1.GetFile("E:\Lak.txt")
S = "File was Last Accessed on: "&f2.Datelastaccessed
Msgbox S
Output->File was Last Accessed on: 10/12/2008 3:55:15 PM
Movie Songs Lyrics
SQL Queries
QTP Script to Get Created Date and Time,Modified Date and Time & Accessed Date and Time of a File.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment