PHP获取主机盘符
<?php
$obj = new COM('Scripting.FileSystemObject');
$DriveTypeDB = array(0 => 'Unknow',1 => 'Removable',2 => 'Fixed',3 => 'Network',4 => 'CDRom',5 => 'RAM Disk');
foreach($obj->Drives as $drive) {
echo ' '.$DriveTypeDB[$drive->DriveType].'('.$drive->Path.')';
}
?>
标签: PHP获取盘符
还没有人抢沙发呢~