System_WinDrives::getDriveType()

System_WinDrives::getDriveType() -- Gets the type of a drive

Synopsis

require_once 'System/WinDrives.php';

int System_WinDrives::getDriveType (string $strDrive)

Description

Returns the type of a drive.

Table 56-1. Return values

ValueConstantMeaning
1SYSTEM_WINDRIVE_ERRORNon-existent drive or other error
2SYSTEM_WINDRIVE_REMOVABLERemovable drive (e.g. floppy)
3SYSTEM_WINDRIVE_FIXEDHarddisk
4SYSTEM_WINDRIVE_REMOTENetwork share
5SYSTEM_WINDRIVE_CDROMCD-Rom or DVD
6SYSTEM_WINDRIVE_RAMDISKRAM disk

Parameter

string $strDrive

The drive that type shall be returned.

Return value

integer - the type (use the constants for comparison)

See

getTypeTitle()