Visual Basic Scripting Edition | 語言參考 |
提供對文件夾所有屬性的訪問。
以下代碼舉例說明如何獲得 Folder 對象并查看它的屬性:
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 對象 | Drives 集合 | File 對象 | Files 集合 | Folders 集合