System.getTotalSpace() This page was last modified over 30 day(s) ago and has 1 comment(s)


Back to System Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.System.getTotalSpace(drive:String):Number

Parameters
drive:String - Drive identifier

Returns
A Number

Description
Returns the total available space in KB of the specified drive.

Notes
On Mac OSX, specify the volume number instead of a Drive Letter, starting from 0.

On Linux, a drive identifier is not needed.

Example Code
var freeSpace:Number = mdm.System.getTotalSpace("c");

mdm.System Class Example Downloads
No Example Downloads Available


User Comment by innivodave on 26th February 2008 - 16:22
This actually returns the result in Mb , not Kb as stated.

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page