System - Get Drive Information

Gets information about a drive on the user's system.

Action ID:
Action Category:
Action List Syntax:

133
System
<<VARIABLE>>
= System.GetDriveInformation (<<DRIVE>>, <<PROPERTY>>)

Settings

Variable:

The variable that the drive information will be stored in.

Drive:

The drive that you wish to investigate. This can be a drive letter (C, C:, or C:\), a UNC share name for the drive (\\WINN\Peg), or a full path (C:\MyFiles\MyFile.exe).

Property:

Free Space

-

The amount of free space left on the drive, in megabytes (MB).

Total Space

-

The total amount of space (both used and unused) on the drive, in megabytes (MB).

Type

-

The type of drive. Will return one of:

"UNKNOWN" - The type cannot be determined.
"INVALID" - The drive is either invalid or the drive does not exist.
"REMOVABLE" - The drive is a removable drive.
"FIXED" - The drive is a non-removable (fixed) drive.
"NETWORK" - The drive is a network drive.
"CD-ROM" - The drive is a CD-ROM.
"RAM-DISK" - The drive is a RAM disk.

Used Space

-

The amount of space already used on the drive, in megabytes (MB).

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

Examples

Getting system information