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)

Scripting Guidelines

 

Related functions

Sys_GetFileSystemType Sys_GetDriveType