Previous Topic: Defining Windows jobsNext Topic: Pass Positional Arguments in a Windows Job


Verify File Space Before a Windows Job Starts

You can define a Windows job to check if one or more Windows drives have the required amount of available space. At run time, the agent checks whether the required space is available on the agent computer. If all of the requirements are met, the job starts. If any of the requirements are not met, the job fails.

By default, Windows jobs do not check the available file space.

To verify file space before a Windows job starts, specify the FILESYSTEM statement in the job definition. To check the available space on multiple drives, define a separate FILESYSTEM statement for each drive.

Example: Verify Available File Space to Start a Job on Windows

This example checks whether the C: drive has 100 KB of available space and the D: drive has 120 KB of available space. The specified file space must be available before the job can start.

AGENT WINAGENT
CMDNAME C:\Programs\Payroll\pay.exe
FILESYSTEM C SIZE(100)
FILESYSTEM D SIZE(120)