System_WinDrives::getDriveName()

System_WinDrives::getDriveName() – Returns the user-defined name for a drive

Synopsis

require_once 'System/WinDrives.php';

string System_WinDrives::getDriveName ( string $strDrive )

Description

Returns the user-given name for the given drive. The function does not work on PHP5 and returns an empty string ''.

Parameter

string $strDrive

The drive path, whose name shall be read.

Return value

string - The drive label

Example

Using myFunction()

<?php
require_once 'System/WinDrives.php';

$swd = new System_WinDrives();
echo 
$swd->getDriveName('C:\\');
?>

Output:

    
Windrive
    
Gets array with path of all drives (Previous) Gets information about all drives (Next)
Last updated: Tue, 25 Nov 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.