|
The Drive object provides access to the properties of a particular disk drive or network share.
The amount of space available to a user. This property is not currently supported on UNIX. | |
The drive letter of a physical drive or network share. This property is not currently supported on UNIX. | |
The type of a drive. This property is not currently supported on UNIX. | |
The type of file system in use on the drive. This property is not currently supported on UNIX. | |
The amount of free space available to a user on a specified drive or network share. This property is currently not supported on UNIX. | |
Boolean value indicating the status of a drive. | |
The file system path to the drive. | |
A Folder object representing the root folder of a drive. | |
The decimal serial number used to uniquely identify a disk volume. This property is not currently supported on UNIX. | |
The network share name for the drive. This property is not currently supported on UNIX. | |
The total size, in bytes, of a drive or network share. This property is not currently supported on UNIX. | |
The volume name of a drive or network share. This property is not currently supported on UNIX. |
The following code illustrates the use of the Drive object to access drive properties:
function ShowUsedSpace(drvPath)
{
var fs, d, s;
fs = new ActiveXObject("Scripting.FileSystemObject");
d = fs.GetDrive(fs.GetDriveName(drvPath));
s = "Space used on drive " + drvPath + " - " ;
s += d.RootFolder.Size/1024 + " Kbytes";
Response.Write(s);
}
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.