VBS教程:對象-Folders 集合
更新時間:2006年11月16日 00:00:00 作者:
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
相關(guān)文章
reg2vbs.vbs 將Reg文件轉(zhuǎn)換為VBS文件保存 腳本之家修正版本
可以將Reg文件轉(zhuǎn)換為VBS文件保存的代碼,網(wǎng)上的好多都有問題,本地特給修正了一下,有問題,請回復(fù)。2009-05-05

