Visual Basic Scripting Edition | Language Reference |
Provides access to all the properties of a file.
The following code illustrates how to obtain a File object and how to view one of its properties.
Function ShowDateCreated(filespec)
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(filespec)
ShowDateCreated = f.DateCreated
End Function
Attributes Property | DateCreated Property | DateLastAccessed Property | DateLastModified Property | Drive Property | Name Property | ParentFolder Property | Path Property | ShortName Property | ShortPath Property | Size Property | Type Property
Copy Method | Delete Method | Move Method | OpenAsTextStream Method
Drive Object | Drives Collection | Files Collection | Folder Object | Folders Collection