string System_WinDrives::getDriveName (
string $strDrive
)
Returns the user-given name for the given drive. The
function does not work on PHP5 and returns an empty string
''
.
$strDrive
The drive path, whose name shall be read.
string - The drive label
Using myFunction()
<?php
require_once 'System/WinDrives.php';
$swd = new System_WinDrives();
echo $swd->getDriveName('C:\\');
?>
Output:
Windrive