Consolewrite(_HardDrives()) Func _HardDrives() Local $sResult, $objWMIService, $colItems Local $strcomputer = "." $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & $strcomputer & "\root\cimv2") $colItems = $objWMIService.ExecQuery("Select * from Win32_DiskDrive") For $objItem In $colItems $sResult &= $objItem.Caption & @TAB & "Size: " & Int($objItem.Size / 1024 ^ 3) & " GB" & @LF Next Return $sResult EndFunc ;==>_HardDrives
And i noticed that on one machine that had a card reader slot it returned this
Is there a way to make it only return that device or maybe only return the 0 GB devices which should be the card reader?Generic-Multi-Card uSB Device Size: 0GB





