Gentee Programming Language > Documentation > Libraries Download documentation

getdrivetype

Get the type of a disk.
 
uint getdrivetype(
      str   drive
)

Parameters

driveThe name of a disk with a closing slash. For example: C:\

Return value

Returns one of the following values:
$DRIVE_UNKNOWNUnknown type.
$DRIVE_NO_ROOT_DIRInvalid path to root.
$DRIVE_REMOVABLERemovable disk.
$DRIVE_FIXEDFixed disk.
$DRIVE_REMOTENetwork disk.
$DRIVE_CDROMCD-ROM drive.
$DRIVE_RAMDISKRAM disk.

See also

    Function working with files


 Copyright © 2004-2006 Gentee Inc. All rights reserved.