0514-86177077
9:00-17:00(工作日)
返回由指定文件夾中所有 File 對象(包括隱藏文件和系統(tǒng)文件)組成的 Files 集合。
object.Files
object 應為 Folder 對象的名稱。
以下代碼舉例說明如何使用 Files 屬性:
Function ShowFileList(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>" NextShowFileList = sEnd Function
標簽:咸寧 滄州 資陽 昌都 韶關 阿里 海北 通遼
上一篇:VBS教程:屬性-FileSystem 屬性
下一篇:VBS教程:屬性-DriveType 屬性
Copyright ? 1999-2012 誠信 合法 規(guī)范的巨人網(wǎng)絡通訊始建于2005年
蘇ICP備15040257號-8