Version: 3.0
The Drive object provides access to the various properties of the local or remote disk drive.
<%
Set filesys = CreateObject("Scripting.FileSystemObject")
Set drv = filesys.GetDrive("c")
%>
This code uses the GetDrive method of the FileSystemObject object to get the Drive object for drive "c".
Syntax: object.AvailableSpace
Returns the amount of space available on the specified local or remote disk space.
Syntax: object.DriveLetter
Returns the dirve letter of the specified local or remote disk drive. Read only.
Syntax: object.DriveType
Returns an integer indicating the type of the drive.
Syntax: object.FileSystem
This property returns the file system type that is in use on the specified drive.
Syntax: object.FreeSpace
Returns the amount of free space available to a user on the specified local or remote drive.
Syntax: object.IsReady
This property is a Boolean whose value is True if the specified drive is available for use and False otherwise.
Syntax: object.Path
Returns the path for a specified file, folder or drive.
Syntax: object.RootFolder
Returns a Folder object that represents the root folder of the specified drive.
Syntax: object.SerialNumber
Returns the decimal serial number for the specified drive. This number can be used to uniquely identify a disk volume.
Syntax: object.ShareName
Returns the network name in Universal Naming Convention (UNC) for the remote disk drive. Used only when working with a remote drive (DriveType property is 3).
Syntax: object.TotalSize
Returns the total space, in bytes, of the specified drive.
Syntax: object.VolumeName
Sets or returns the volume name of the specified drive.