none
Hard disk information from command prompt

    Question

  • Hi,

    How to get the information(size, free,used space) of all the hard disk drives with one command in command prompt? please tell if anyone knows this command because i dint find any way to get info on all drives using a single command.

    Using fsutil volume diskfree c:   or  dir command we can get info on one particular drive, but how to get this on all drives in the system using a single command?

    thanks

    Tuesday, September 18, 2012 8:36 AM

Answers

  • I got the answer

    the following command can be used.

    wmic logicaldisk get size,freespace,caption

    the output is 

    Caption  FreeSpace    Size
    C:       10293153792  42949668864
    D:       38401937408  74088181760
    E:       37109010432  42686476288

    • Marked as answer by RameshLD Tuesday, September 18, 2012 8:46 AM
    Tuesday, September 18, 2012 8:46 AM

All replies