How to convert output of bytes into mb/gb's with WMIC?

Joined
Dec 13, 2006
Messages
1
Reaction score
0
I've recently started to find how powerful and useful WMIC is and am using it to check disk space free on servers... command below...

wmic /node:@machines.txt /output:c:wmimachinesresult.html logicaldisk get caption, size, freespace /format:hform.xsl

The problem is that it records the freespace size in bytes and these days servers have a crap load more disk space then they used to. Is the an addition to this command line that will format the output into megs or gig instead of a modern day useless number of bytes.

Cheers!
happywave.gif
 
Back
Top