Identifying Local & Network Drives in Windows 10+
Sometimes we need to identify local and network dives on Windows machines. Since Windows 10+ no longer support (or soon to be) wmic, needed a simple way to use PHP. $fso = new COM('Scripting.FileSystemObject'); $D = $fso->Drives; $type = array("Unknown","Removable","Fixed","Network","CD-ROM","RAM Disk"); foreach($D as $d ){ $dO = $fso->GetDrive($d); $s = ""; if($dO->DriveType == 3){ $n =