GetTotalSpace()
Returns the size of the partition named by this abstract pathname.
GetTotalSpace( file=object );
Returns: Numeric
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
- File handling
- Server
- GetFreeSpace()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)