DISK_EXISTS()

DISK_EXISTS(D)

RETURNS 1 IF THE DISK D EXISTS, 0 OTHERWISE

  • Type: Function
  • Parameter: 1
  • Group: System

ACTION

The fonction DISK_EXISTS(D) returns 1 if the disk D exists and 0 otherwise.

D is one letter from A to Z.

SYNTAX: Result=DISK_EXISTS(D)

  • D = disk name.

USE

  • The function DISK_EXISTS() is used to know if a disk exists.

ERROR

  • If D is not a correct name of disk.
  • If D is not one character.

EXAMPLE

rem test if the disk C exists

if disk_exists("C")=1 then print "the disk exists"

SEE ALSO

DISK_KILO_FREE()

DISK_KILO_SIZE()