Get the App
SLTechnology News&Howtos  ›  Development  › 

How does VBS get the Folders collection

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

This article mainly explains "how VBS obtains Folders set". The explanation content in this article is simple and clear, and it is easy to learn and understand. Please follow the idea of Xiaobian to study and learn "how VBS obtains Folders set" together.

A collection of all Folder objects contained in a Folder object.

description

The following code illustrates how to get the Folders collection and use the For Each... Next statement enumerates collection members:

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

" Next ShowFolderList = sEnd Function Thank you for your reading. The above is the content of "How VBS obtains Folders set." After studying this article, I believe you have a deeper understanding of how VBS obtains Folders set. The specific use needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Learning content object code that is ideas situations members articles more knowledge knowledge points articles sentences follow questions practice push research verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia MySQL macOS Shulou Tech Info Redmi