Drive.GetInformation

table Drive.GetInformation ( 

string Drive )

Description

Returns a table of information about a given drive.

Parameters

Drive

(string) The drive whose information you want. The drive must be in the format "C:" or "C:\".

Returns

(table)  A table containing the specified drive's information, indexed by the following keys:

KEY

TYPE

DESCRIPTION

Label

string

The volume label of the drive. You can access this value using tb.Label.

FileSystem

string

The type of file system on the drive. For example, "FAT32", "NTFS", etc. You can access this value using tb.FileSystem.

SerialNumber

number

The drive's serial number. You can access this value using tb.SerialNumber.

DisplayName

string

The description of the drive as it appears in Windows Explorer's My Computer view. You can access this value using tb.DisplayName.

If an error occurs, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions