VBS教程:屬性-Files 屬性
Files 屬性
返回由指定文件夾中所有 File 對(duì)象(包括隱藏文件和系統(tǒng)文件)組成的 Files 集合。
object.Files
object 應(yīng)為 Folder 對(duì)象的名稱。
說(shuō)明
以下代碼舉例說(shuō)明如何使用 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
相關(guān)文章
最新惡意復(fù)制型病毒autorun.inf,stNP.VBS,NP.VBS代碼簡(jiǎn)單解析和解決方法
最新惡意復(fù)制型病毒autorun.inf,stNP.VBS,NP.VBS代碼簡(jiǎn)單解析和解決方法...2007-05-05VBS教程:VBScript 基礎(chǔ)-VBScript 常數(shù)
VBS教程:VBScript 基礎(chǔ)-VBScript 常數(shù)...2006-11-11VBS教程:函數(shù)-FormatCurrency 函數(shù)
VBS教程:函數(shù)-FormatCurrency 函數(shù)...2006-11-11用vbs實(shí)現(xiàn)向任何電子郵件發(fā)送郵件
向任何電子郵件發(fā)送郵件的vbs腳本文件代碼2008-05-05VBS教程:函數(shù)-InputBox 函數(shù)
VBS教程:函數(shù)-InputBox 函數(shù)...2006-11-11