To return information about a
specified file,the File object is used .You will have to create an instance of the File
object through the FileSystemObject object to work with the properties and methods of the
File object, . First;With the use of the GetFile method of the FileSystemObject object or
the Files property of the Folder object, create a
FileSystemObject object and then instantiate the File object
To instantiate the File object and the
DateCreated property to return the date when the specified file was created,the following code uses the GetFile method of the
FileSystemObject object:
|