Another option, you could use DBD::WMI with the following query:
Select DeviceID,Size,FreeSpace from Win32_LogicalDisk
In reply to Re^3: get disk usage details like free, used, available for windows drives with sizes in TB
by marto
in thread get disk usage details like free, used, available for windows drives with sizes in TB
by balakrishnan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |