File System Objects

Drive Object

AvailableSpace Property

Returns a variant representing the available space on the drive in bytes

DriveLetter Property

Returns a string containing the drive letter

DriveType Property

Returns a DriveTypeConst specifying the type of drive

FileSystem Property

Returns a string containing an abbreviation for the filesystem type (i.e., FAT)

FreeSpace Property

Returns a variant containing the free space on the drive in bytes

IsReady Property

Returns True if the specified drive is ready

Path Property

Returns a string containing the full path of the drive

RootFolder Property

Returns a Folder object representing the root of the drive

SerialNumber Property

Returns a Long containing the serial number of the disk

ShareName Property

Returns a String containing the share name, if any

TotalSize Property

Returns a variant containing the total size of the disk in bytes

VolumeName Property

Returns a string containing the name of the current volume

Drives Collection Object

Count Property

Returns the number of Drive objects in the collection

Item Property

Returns the Drive object associated with the given key (the drive name)

File Object

Attributes Property

Returns a FileAttributes constant

Copy Method

Copies this file to another location

DateCreated Property

Returns the date the file was created

DateLastAccessed Property

Returns the date the file was last accessed

DateLastModified Property

Returns ...

Get VBScript in a Nutshell 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.