The following code illustrates how to obtain a Folder object and how to return one of its properties:
Sub ShowFolderInfo(folderspec) Dim fs, f, s, Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFolder(folderspec) s = f.DateCreated MsgBox s End Sub
Properties, Methods, and Events | Drive Object | Drives Collection | File Object | Files Collection | FileSystemObject Object