Convert output data in Giga Bytes

January 18, 2012 at 18:32:02
Specs: Windows 7
wmic logicaldisk get caption, description, filesystem, size, freespace
C: Local Fixed Disk NTFS 17450455040 52427898880
D: Local Fixed Disk NTFS 6412402688 20971515904

can we convert this bytes to giga bytes like 17GB instead of its shows like 17450455040

I think by passing variables we can do it

See More: Convert output data in Giga Bytes

Report •

January 19, 2012 at 14:46:07
All you need to do is some math in the program. Just divide the bytes value by 1000000000 and the output will be GB. Since I don't know which language this is in, I can't make a code for you.

Report •
Related Solutions

Ask Question