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)

Gets information about all drives (Previous) Returns if drive names shall be read or not (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.