GetTotalSpace

Returns the size of the partition named by this abstract pathname.

GetTotalSpace( file )

Returns: [[object-number|Numeric]

Argument Description
file
object, required

file path

Alias: filepath, path

Examples

try{
	totalDiskSpace = getTotalSpace("c:");
	totalRAMSpace = getTotalSpace("c:");
	writeOutput('Total Hard Disk Space : ' & DecimalFormat(totalDiskSpace / (1024 * 1024 * 1024)));
	writeoutput('<br>');
	writeOutput('Total Application RAM Memory : ' & DecimalFormat(totalRAMSpace / (1024 * 1024)));
}
catch(any e){
	writeOutput(cfcatch.message);
	writeOutput(cfcatch.detail);
}

See also