ifym
04-02-2003, 05:55 AM
can somebody tell me how to find the size of a disk with wmi?
set refDrive= getobject("winmgmts:win32_logicaldisk='c:' ")
wscript.echo "your drive is "&refdrive.size &" bytes"
this is all i can find, but that would give you the size of the partition, i need the size of the hard disk. Thanks
set refDrive= getobject("winmgmts:win32_logicaldisk='c:' ")
wscript.echo "your drive is "&refdrive.size &" bytes"
this is all i can find, but that would give you the size of the partition, i need the size of the hard disk. Thanks