# FREESPACE()

Syntax:

Then: XX=freespace()
Then: XX=freespace(drive)

Returns the available free space (in bytes) of the drive on which the main file's map is located.

For UNIX versions, FREESPACE() will use the partition on which the main file's map is located.

Version Ref: 4.8

Description:

FREESPACE() returns the free space (in bytes) of the drive letter [DOS] or filesystem [Unix] specified.

Examples:

Then: XX=FREESPACE("C")

Returns the amount of free space left on the C drive.