Get the App
SLTechnology News&Howtos  ›  Development  › 

How VBS gets the Folder object and looks at the properties

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

This article introduces the knowledge of "how to get Folder objects and view properties by VBS". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Provides access to all properties of the folder.

Description

The following code illustrates how to get a Folder object and view its properties:

Function ShowDateCreated (folderspec) Dim fso, f, Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.GetFolder (folderspec) ShowDateCreated = f.DateCreatedEnd Function "how to get Folder objects and view properties" is here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Attributes objects content more knowledge practicality learning next code dilemma reality situation files folders articles cases editing websites industries processes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Linux NVidia vpn Shulou Information