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

a quick google turns up Win32::DriveInfo.

You can use sniff for determining if you need to use it (or a *nix counterpart like you're trying to use) or not. Re: cross platform scripts has a very rudimentary version of it demonstrated.

  • Comment on Re: get disk usage details like free, used, available for windows drives with sizes in TB