Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Drive Object

The Drive object provides access to the properties of a particular disk drive or network share.

Properties: JScript Drive Object

JScript Drive Object AvailableSpace Property

The amount of space available to a user. This property is not currently supported on UNIX.

JScript Drive Object DriveLetter Property

The drive letter of a physical drive or network share. This property is not currently supported on UNIX.

JScript Drive Object DriveType Property

The type of a drive. This property is not currently supported on UNIX.

JScript Drive Object FileSystem Property

The type of file system in use on the drive. This property is not currently supported on UNIX.

JScript Drive Object FreeSpace Property

The amount of free space available to a user on a specified drive or network share. This property is currently not supported on UNIX.

JScript Drive Object IsReady Property

Boolean value indicating the status of a drive.

JScript Drive Object Path Property

The file system path to the drive.

JScript Drive Object RootFolder Property

A Folder object representing the root folder of a drive.

JScript Drive Object SerialNumber Property

The decimal serial number used to uniquely identify a disk volume. This property is not currently supported on UNIX.

JScript Drive Object ShareName Property

The network share name for the drive. This property is not currently supported on UNIX.

JScript Drive Object TotalSize Property

The total size, in bytes, of a drive or network share. This property is not currently supported on UNIX.

JScript Drive Object VolumeName Property

The volume name of a drive or network share. This property is not currently supported on UNIX.

Remarks: JScript Drive Object

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.