O'Reilly logo

VBScript in a Nutshell by Ron Petrusha, Paul Lomax, Matt Childs

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

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 ...

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