in reply to Re: Finding Drive usage info with Win32 ($^E?)
in thread Finding Drive usage info with Win32

I found Win32::AdminMisc on the Roth Consulting site. The Win32::AdminMisc FAQ, which appears to also contain the documentation, provides a link to the ftp site that can be used to download the latest version of the module (currently 20030714). This module is available from the Roth PPM repository (http://www.roth.net/perl/packages/).

According to the FAQ, the GetDriveSpace function returns nothing if the call was unsuccessful, or the total drive capacity and the available space on the drive if the call was successful.

A list of Roth Consulting's Perl Extensions is available at http://www.roth.net/perl/#Installation.

Update: This post was in response to tye's "Unfortunately, Win32::AdminMisc isn't on CPAN so I'm not going to go googling in hopes of find it and documentation for it" rather than his comment regarding the reason of failure. I just thought quick access to the links above would be useful in future searches. For the record, I didn't see anything in the docs about failure reasons and I didn't examine the code.

  • Comment on Re^2: Finding Drive usage info with Win32 (Win32::AdminMisc)

Replies are listed 'Best First'.
Re^3: Finding Drive usage info with Win32 ($^E??)
by tye (Sage) on May 18, 2006 at 06:06 UTC

    Note that this didn't answer the question I had about the module. I already knew that "nothing" was returned for failure. What would be nice to know, is how to get the failure reason. This is often hard to find in the documentation so I often just look at the source... which is conveniently made available by http://search.cpan.org/... except that this module isn't on CPAN and I suspect the author doesn't make the source available anywhere else (this is certainly the case for some modules from this author). So the next step might be "try it and see" if $^E works for that, but I avoid installing non-CPAN modules so I won't (the original problem was solved anyway).

    - tye