EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

getdrivetype

Get the type of a disk.

func uint getdrivetype (
   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_UNKNOWNUnknown type.
$DRIVE_NO_ROOT_DIRInvalid path to root.
$DRIVE_REMOVABLERemovable disk.
$DRIVE_FIXEDFixed disk.
$DRIVE_REMOTENetwork disk.
$DRIVE_CDROMCD/DVD-ROM drive.
$DRIVE_RAMDISKRAM disk.

Related links

Source