I am trying to find out the disk volume name.And my code is:
$diskVolume = array('m','r');
foreach ($diskVolume as $volume) {
echo $volume.' ';
$cmd = 'fsutil fsinfo volumeinfo '.$volume.':';
exec( $cmd,$getVolumeName);
echo $getVolumeName[0].'<br /> ';
}
But my code seems only got the first item m's volume name and couldn't get the r.In other words ,the loop only get the first item's information..,
Thank you very much!!
information about fsutil: fsutil