DISK_Size

<< Click to Display Table of Contents >>

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

DISK_Size

 

Description

 

Return the total amount of space on a disk, in bytes.

 

Syntax

 

n = DISK_Size(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