DISK_Free

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > DISK: functions working on disks >

DISK_Free

 

Description

 

Return the amount of available space on a disk, in bytes

 

Syntax

 

n = DISK_Free(sDrive)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

sDrive

String

No

sDrive specifies the drive letter or UNC share name (subject to operating system restrictions) of the disk to examine.

 

If sDrive is an empty string, information on the default drive is returned.

 

Remarks

 

Restrictions

 

See also

 

DISK_Free, DISK_Size

 

Examples