Xbasic

FILE.DRIVE_SPACE_AVAIL Function

Syntax

Byte_Count as N = FILE.Drive_Space_Avail(C Drive)

Arguments

DriveCharacter

The letter of the drive.

Returns

Byte_CountNumeric

Returns the number of bytes free.

Description

Returns the number of bytes free on the disk.

Discussion

The FILE.DRIVE_SPACE_AVAIL() method returns the number of bytes of available space on Drive.

Example 

Type the following in the Interactive window:

? FILE.drive_space_avail("c:")
= 783356157952

See Also