The usage of the VBS property DateLastModified
This article mainly introduces "the usage of VBS attribute DateLastModified". In daily operation, I believe many people have doubts about the usage of VBS attribute DateLastModified. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "the usage of VBS attribute DateLastModified"! Next, please follow the editor to study!
Returns the date and time when the specified file or folder was last modified. Read only.
Object.DateLastModified
Object should be the name of the File or Folder object.
Description
The following code illustrates how to use the DateLastModified property:
Function ShowFileAccessInfo (filespec) Dim fso, f, s Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.GetFile (filespec) s = UCase (filespec) & "
"s = s &" creation time: & f.DateCreated & "
"s = s &" Last visit time: & f.DateLastAccessed & "
"s = s &" Last modified time: & f.DateLastModified ShowFileAccessInfo = s End Function at this point, the study of "the usage of VBS attribute DateLastModified" is over, hoping to solve everyone's doubts. The combination of theory and practice can help you learn better, go and try it! if you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!