Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of the VBS property SubFolders

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

This article introduces the relevant knowledge of "the use of VBS attribute SubFolders". Many people will encounter such a 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!

Returns a Folders collection of all subfolders in the specified folder, including hidden folders and system folders.

Object.SubFolders

Object should be the name of the Folder object.

Description

The following code illustrates how to use the SubFolders property:

Function ShowFolderList (folderspec) Dim fso, f, F1, s, sf Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.GetFolder (folderspec) Set sf = f.SubFolders For Each F1 in sf s = s & f1.name s = s & "

This is the end of the introduction of "Next ShowFolderList = sEnd Function". 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: Files folders properties content more knowledge utility learning next code name dilemma actual object situation article case system ribbon website Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple Docker Linux vpn