RSS | Module Info | Add a review of Win32-DriveInfo
Win32-DriveInfo
(0.06)
This was the only package that I could find on CPAN that could give me the Win32 drive percentage of free space.
perl -MWin32::DriveInfo -e "my @info=Win32::DriveInfo::DriveSpace(q{C:});printf qq{Percent of Free Space: %0.2f\%\n}, $info[6]/$info[5]*100;"
Percent of Free Space: 32.03%
Thanks,
mrdvt92
Michael R. Davis - 2010-04-29T11:38:22 (permalink)
3 out of 3 found this review helpful.
Was this review helpful to you?
Yes
No
Win32-DriveInfo
(0.06)
If you're accessing a remote server's drive and the server name contains a hyphen, the module will return zeroes.
See perlmonks.org/?node_id=823880 for the full thread and a solution.
Cloudster - 2010-02-21T19:57:04 (permalink)
1 out of 1 found this review helpful.
Was this review helpful to you?
Yes
No
Win32-DriveInfo
(0.06)
Lists FreeSpace and more on Drives.
Fine. Did what i expected.
Matthias Haegele - 2009-11-20T09:47:45 (permalink)
Was this review helpful to you?
Yes
No

