Conversation of disk space format

Discussion in 'General Computing' started by CDWANG, Apr 28, 2016.

  1. CDWANG

    CDWANG New Member

    Joined:
    Apr 25, 2016
    Messages:
    5
    Likes Received:
    0
    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
     

    Attached Files:

  2. holdum333

    holdum333 Banned

    Joined:
    Mar 27, 2016
    Messages:
    1,244
    Likes Received:
    147
    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
     

Share This Page

Loading...