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.GetSize
OverviewExamples
number Drive.GetSize ( string Drive )
De s cr ip t ion
Gets the disk size of a specific hard drive and returns it's numeric size in Megabytes.
P arame t er s
Drive
(string) The drive whose size you want. The first character of the string will be the drive letter used. Therefore "C", "C:"," C:\" and "C:\Myfile.txt" are all valid Drive values.
Re t u r n s
(number) The size of the drive in Megabytes. If the specified drive is not valid or any other error occurs, - 1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.