VBS教程:屬性-Files 屬性
更新時間:2006年11月16日 00:00:00 作者:
Files 屬性
返回由指定文件夾中所有 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
相關文章
最新惡意復制型病毒autorun.inf,stNP.VBS,NP.VBS代碼簡單解析和解決方法
最新惡意復制型病毒autorun.inf,stNP.VBS,NP.VBS代碼簡單解析和解決方法...2007-05-05VBS教程:VBScript 基礎-VBScript 常數(shù)
VBS教程:VBScript 基礎-VBScript 常數(shù)...2006-11-11VBS教程:函數(shù)-FormatCurrency 函數(shù)
VBS教程:函數(shù)-FormatCurrency 函數(shù)...2006-11-11VBS教程:函數(shù)-InputBox 函數(shù)
VBS教程:函數(shù)-InputBox 函數(shù)...2006-11-11