Visual Basic Scripting Edition | 語(yǔ)言參考 |
提供對(duì)文件夾所有屬性的訪問(wèn)。
以下代碼舉例說(shuō)明如何獲得 Folder 對(duì)象并查看它的屬性:
Function ShowDateCreated(folderspec)
Dim fso, f,
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
ShowDateCreated = f.DateCreated
End Function
Attributes 屬性 | DateCreated 屬性 | DateLastAccessed 屬性 | DateLastModified 屬性 | Drive 屬性 | Files 屬性 | IsRootFolder 屬性 | Name Property | ParentFolder 屬性 | Path Property | ShortName 屬性 | ShortPath 屬性 | Size 屬性 | SubFolders 屬性 | Type 屬性
Copy 方法 | Delete 方法 | Move 方法 | CreateTextFile 方法
Drive 對(duì)象 | Drives 集合 | File 對(duì)象 | Files 集合 | Folders 集合