|
|
(Next) System_WinDrives::getDriveName() |
||||
| |
|||||
|
|||||
array System_WinDrives::getDriveList (
void
)
Returns an array with all drive paths (e.g. A:\, C:\).
If no API is available, the drive list is guessed. To get more data (like drive type and name), you should use getDrivesInformation().
array - array with all the drives
Using myFunction()
<?php
require_once 'System/WinDrives.php';
$swd = new System_WinDrives();
$arPaths = $swd->getDriveList();
foreach ($arPaths as $strPath) {
echo $strPath . "\r\n";//echoes things like "A:\" and "C:\"
}
?>
Output:
A:\
C:\
|
|
(Next) System_WinDrives::getDriveName() |
||||||||
| |
|||||||||
|
|||||||||