How does VBS get the Folders collection
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!