getdrivetype
Get the type of a disk.
func uint getdrivetype (
str name
)
str name
)
Parameters
drive | The name of a disk with a closing slash. For example: C:\ |
Return value
Returns one of the following values:
$DRIVE_UNKNOWN | Unknown type. |
$DRIVE_NO_ROOT_DIR | Invalid path to root. |
$DRIVE_REMOVABLE | Removable disk. |
$DRIVE_FIXED | Fixed disk. |
$DRIVE_REMOTE | Network disk. |
$DRIVE_CDROM | CD/DVD-ROM drive. |
$DRIVE_RAMDISK | RAM disk. |
Related links | Source |