Conversation of disk space format

CDWANG

Well-Known Member
Joined
Apr 25, 2016
Messages
5
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

  • Capture55.webp
    Capture55.webp
    8.9 KB · Views: 390
Back
Top