The usage of the VBS property DateCreated
This article mainly explains "the usage of VBS attribute DateCreated". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the usage of VBS attribute DateCreated".
Returns the date and time when the specified file or folder was created. Read only.
Object.DateCreated
Object should be the name of the File or Folder object.
Description
The following code illustrates how to use the DateCreated property:
Function ShowFileInfo (filespec) Dim fso, f Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.GetFile (filespec) ShowFileInfo = "create:" & f.DateCreatedEnd Function thank you for reading, the above is the content of "the usage of VBS attribute DateCreated". After the study of this article, I believe you have a deeper understanding of the use of VBS attribute DateCreated, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!