Sys_GetFreeDiskSpace
Description
Section titled “Description”Gets free disk space
Syntax
Section titled “Syntax”Sys_GetFreeDiskSpace(sDrive, iRequired) As Boolean
Parameters
Section titled “Parameters”sDrive (String)
Section titled “sDrive (String)”Specified disk-drive
iRequired (Integer)
Section titled “iRequired (Integer)”Number of required MegaBytes
Return value
Section titled “Return value”Result will be stored in giValue.
If free disk space is less than iRequired the function will set package status to ‘Not Compliant’
Example
Section titled “Example”If bStatus Then bStatus = Sys_GetFreeDiskSpace ("C:\", 10)If bStatus Then bStatus = Job_Writelog("Custom", "giValue: " & giValue, bStatus, True)Related functions
Section titled “Related functions”Sys_GetFileSystemType Sys_GetDriveType Constants Package Property Variables