FileSystemObject

JScript3.0+Syntax

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

Description

The FileSystemObject object provides access to the computer's file system. The FileSystemObject object has specific properties and methods associated with it, which are shown in Table 9.13.

Table 9.13. Properties and Methods of the FileSystemObject Object
Property/MethodDescription
BuildPath()Appends information to a file path
CopyFile()Copies a file from one location to another
CopyFolder()Copies a folder from one location to another
CreateFolder()Creates a new folder object
CreateTextfile()Creates a new text file object
DeleteFile()Removes a file
DeleteFolder()Removes a folder object
DriveExists()Determines ...

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.