File

JScript3.0+Syntax

Core JScript object created by calling the ActiveXObject() method and passing Scripting.FileSystemObject.

Description

The File object provides access to all the properties of a file. The File object has specific properties and methods associated with it, shown in Table 9.9.

Table 9.9. Properties and Methods of the File Object
Property/MethodDescription
AttributesRefers to the attributes of the file
Copy()Copies a file from one location to another
DateCreatedReturns the date a file was created
DateLastAccessedReturns the date a file was last accessed
DateLastModifiedReturns the date a file was last modified
Delete()Removes a file
DriveReturns the drive on which a file exists
Move()Moves a file from one location to another
Name ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.