in reply to Re: get disk usage details like free, used, available for windows drives with sizes in TB
in thread get disk usage details like free, used, available for windows drives with sizes in TB

Thanks you so much for your comments..
The concern here is, Windows 2000 doesnt support wmic.

I am just looking for the solution which should work in all Windows OS >= Windows 2000.
  • Comment on Re^2: get disk usage details like free, used, available for windows drives with sizes in TB

Replies are listed 'Best First'.
Re^3: get disk usage details like free, used, available for windows drives with sizes in TB
by BrowserUk (Patriarch) on Jan 08, 2014 at 10:55 UTC

    Try this:

    C:\Windows\System32>fsutil volume diskfree c: Total # of free bytes : 143714562048 Total # of bytes : 627247673344 Total # of avail free bytes : 143714562048

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      already tried the same... command doesnt exist on Windows 2000.
      C:\>fsutil 'fsutil' is not recognized as an internal or external command, operable program or batch file.

        balakrishnan:

        Microsoft indicates that it will run on Windows 2000 server, but you'll need to have administrator privileges to run it. So check your access and/or your path. If it's not on your computer, perhaps it's on a "power utilities" type of download from microsoft.

        ...roboticus

        When your only tool is a hammer, all problems look like your thumb.

      tried and got error as below,

      fsutil is not recognized as an internal or external command
Re^3: get disk usage details like free, used, available for windows drives with sizes in TB
by marto (Cardinal) on Jan 08, 2014 at 11:16 UTC

    Another option, you could use DBD::WMI with the following query:

    Select DeviceID,Size,FreeSpace from Win32_LogicalDisk
Re^3: get disk usage details like free, used, available for windows drives with sizes in TB
by marto (Cardinal) on Jan 08, 2014 at 11:18 UTC