# Function Reference

DriveGetType

Returns drive type.

DriveGetType ( "path" )

Parameters

path | Path of drive to receive information from.

Return Value

Success: | Returns the type of drive: "Unknown", "Removable", "Fixed", "Network", "CDROM", "RAMDisk"
Failure: | Returns "" and sets @error to 1.

Remarks

The list of possible return values might be incomplete.

Related

DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus

Example

$var = DriveGetType( "c:\" )
MsgBox(4096, "Drive Type:", $var)