Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does VBS get the Folders collection

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report