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.GetUsedSpace
OverviewExamples
number Drive.GetUsedSpace ( string Drive )
De s cr ip t ion
Gets the amount of used disk space of a specific drive and returns it's numeric size in Megabytes.
P arame t er s
Drive
(string) The drive to query for used disk space. 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 amount of used disk space 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.