Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of the VBS property DateCreated

Shulou Source: shulou.com Published: 2022-06-03 19:53:53 11月12日 Update

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!

Tags: Attributes learning content files codes names objects that is ideas situations folders articles dates times more knowledge knowledge points articles follow questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Xiaomi OPPO Reno NVidia MariaDB