O'Reilly logo

ASP in a Nutshell, 2nd Edition by A. Keyton Weissinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

FileSystemObject Object

The FileSystemObject object is the top-level object through which all access to a file system occurs. Table 19.6 lists its single collection, while Table 19.7 lists its methods. Note that many of these methods are only parsing functions and have no real correlation with the underlying file system.

Table 19.6. FileSystemObject Object Collections

Property

Description

Drives

Returns the Drives collection containing all the drives accessible through the current FileSystemObject.

Table 19.7. FileSystemObject Object Methods

Method

Description

BuildPath

Appends a folder name or a relative path to a path. For example, you could append the folder name Documents to the path C:\MyStuff\Personal. The result would be C:\MyStuff\Personal\Documents. The extra backslash is automatically provided, if necessary.

CopyFile

Copies a file from one location to another. This method is similar to the File object's Copy method, but no File object is required.

CopyFolder

Copies a folder and all its contents from one location to another.

CreateFolder*

Creates a new folder.

CreateTextFile

Creates a new text file.

DeleteFile

Deletes a specific file. This method is similar to the File object's Delete method, but no File object is required.

DeleteFolder

Deletes a folder and all its contents.

DriveExists

Determines whether a specific drive exists on your machine. It does not, however, guarantee that the drive is available.

FileExists

Determines whether the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required