look at this for a different approach.

$HD =WMIQuery("Size","Win32_DiskDrive")
$hdGB =left($hd,len($hd)-9)

WMIQuery will retrieve all your info, you just need to specifiy where you are getting it from....
_________________________
How to ask questions the smart way <-----------> Before you ask