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.

Return values
Value Constant Meaning
1 SYSTEM_WINDRIVE_ERROR Non-existent drive or other error
2 SYSTEM_WINDRIVE_REMOVABLE Removable drive (e.g. floppy)
3 SYSTEM_WINDRIVE_FIXED Harddisk
4 SYSTEM_WINDRIVE_REMOTE Network share
5 SYSTEM_WINDRIVE_CDROM CD-Rom or DVD
6 SYSTEM_WINDRIVE_RAMDISK RAM disk

Parameter

string $strDrive

The drive that type shall be returned.

Return value

integer - the type (use the constants for comparison)