页面导航: 首页脚本专栏vbs → 正文内容

VBS教程:对象-Folders 集合

发布:dxy 发布日期:2006-11-16 字体:[增加 减小] 类型:转载

Folders 集合

包含在一个 Folder 对象中的所有 Folder 对象的集合。

说明

以下代码举例说明如何获得 Folders 集合并使用 For Each...Next 语句枚举集合成员:

 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 & "<BR>"    Next    ShowFolderList = sEnd Function
百度中搜索更多的关于VBS教程:对象-Folders 集合内容,或者用Google搜索相关更多
浏览次数:载入中... 打印本文关闭本文文章来源

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行