d
Amit DhamuSoftware Engineer
 

List System Drives - Windows Only

1 minute read 00000 views
$com = new COM('Scripting.FileSystemObject');

foreach ($com->Drives as $drive) {
    echo $drive->DriveLetter . PHP_EOL;
}