ResultVariable
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions
Drive.GetInformation
OverviewExamples
table Drive.GetInformation ( string Drive )
De s cr ip t ion
Returns a table of information about a given drive.
P arame t er s
Drive
(string) The drive whose information you want. The drive must be in the format "C:" or "C:\".
Re t u r n s
(table) A table containing the specified drive's information, indexed by the following keys:
Note: If the target drive is a CD-ROM drive or floppy drive, there must be a disk in the drive for this action to work. If there is no disk in the drive, nil is returned.
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.