Microsoft® Visual Basic® Scripting Edition Folder 對象 |
語言參考 版本 3
|
提供對文件夾所有屬性的訪問。
以下代碼舉例說明如何獲得 Folder 對象并查看它的屬性:Sub ShowFolderInfo(folderspec) Dim fs, f, s, Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFolder(folderspec) s = f.DateCreated MsgBox s End Sub