GET_FREE_SPACE_FOR_DRIVE

Use

Retrieves the available space on the device for the specified directory.

Arguments

[IMPORTING] drive TYPE STRING

Directory for which the available memory space on the corresponding device should be determined. The directory string has to be terminated with a file separator character.

[CHANGING] free_space TYPE I

Available space on the device on which the directory is located. The maximum available space that can be returned by this function is 2147483647 bytes. If an error occurs -1 will be returned.

Exceptions

CNTL_ERROR

Thrown if the GUI is neither Windows nor Java nor HTML GUI or the operation fails.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

This exception is raised if the GUI is HTML or Java GUI.

WRONG_PARAMETER

This exception is thrown if the parameter drive is empty.

GET_FREE_SPACE_FAILED

Currently not used.