Microsoft® Visual Basic® Scripting Edition File Object |
Scripting Run-Time Reference Version 3 |
Description
Provides access to all the properties of a file.
Remarks
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