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:mad: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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top