文件夾中所有 File 對(duì)象的集合.
以下代碼舉例說(shuō)明如何獲得 Folders 集合并使用 For Each...Next 語(yǔ)句枚舉集合成員:
Function ShowFolderList(folderspec) Dim fso, f, f1, fc, s Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder(folderspec) Set fc = f.Files For Each f1 in fc s = s & f1.name s = s & "<BR>" Next ShowFolderList = sEnd Function
新聞熱點(diǎn)
疑難解答
圖片精選