Retrieves the number of bytes with the specified type that are available on the default or specified hard disk drive or volume.

DISKSPACE([cVolumeName [, nType]])

Parameters

cVolumeName

Specifies the name of the hard disk drive or volume for which the available space is returned. If you omit cVolumeName, the available space is returned for the default disk drive or volume.

nType

Specifies the type of hard disk space to retrieve. The following table lists the values for nType.

Value Description

1

Total amount of space on the hard disk drive.

2

Total amount of free space on the hard disk drive. (Default)

3

Total amount of free space available to the user associated with the calling thread.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also