| CPAN Ratings Win32-DriveInfo reviews | |
| Home | Search | About | Bitcard Account | Login |
RSS | Module Info | Add a review of Win32-DriveInfo
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
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
Lists FreeSpace and more on Drives.
Fine. Did what i expected.
Matthias Haegele - 2009-11-20T09:47:45
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|