next up previous contents index
Next: DiskFree Up: Functions and Procedures Previous: Functions and Procedures

AddDisk

   

Declaration:

Procedure AddDisk (Const S : String) ;

Description:

AddDisk adds a filename S to the internal list of disks. It is implemented for LINUX only. This list is used to determine which disks to use in the DiskFree and DiskSize calls.

The DiskFree and DiskSize functions need a file on the specified drive, since this is required for the statfs system call.

The names are added sequentially. The dos initialization code presets the first three disks to:

The first call to AddDisk will therefore add a name for the second harddisk, The second call for the third drive, and so on until 23 drives have been added (corresponding to drives 'D:' to 'Z:')

Errors:

None

See also:

DiskFree, DiskSize



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998