Conversation of disk space format

#1
Hi guys ,

I am trying to convert the Freespace and Size to GB format
using the script command :

WMIC LOGICALDISK GET Name,Size,Freespace /format:value

FreeSpace=61612036096
Name=C:
Size=87780155392


The result I desire is something like :

FreeSpace=61GB
Name=C:
Size=87GB


Can anyone help to advice ?

Regards
CD
 


Attachments

holdum333

Well-Known Member
#2
Hi! Sense you haven't received a reply, I'll give it a shot! You may get more replies latter.
Google is my friend! This is what I get when I Google your question!;)
Windows PowerShell Tip: Byte Conversion
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.