Xbasic

FILE.DRIVE_SPACE_TOTAL Function

Syntax

Byte_Count as N = FILE.Drive_Space_Total(C Drive)

Arguments

DriveCharacter

The letter of the drive.

Returns

Byte_CountNumeric

Returns the size of the drive in byte.

Description

Returns the number of bytes that can be stored on the drive.

Discussion

The FILE.DRIVE_SPACE_TOTAL() method returns the size in bytes of Drive.

Example 

Type the following in the Interactive window:

? FILE.drive_space_total("c:")
= 949684793344

See Also