Sys_GetFreeDiskSpace
Description
Gets free disk space
Â
Syntax
Sys_GetFreeDiskSpace(sDrive, iRequired) As Boolean
Â
Parameters
sDrive (String)
Specified disk-drive
iRequired (Integer)
Number of required MegaBytes
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
VBScript
If bStatus Then bStatus = Sys_GetFreeDiskSpace ("C:\", 10) If bStatus Then bStatus = Job_Writelog("Custom", "giValue: " & giValue, bStatus, True)
Â