Conversation of disk space format

CDWANG

Well-Known Member
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.PNG
    Capture55.PNG
    13.1 KB · Views: 390
Back
Top