BTW I just recently bought this book ("Perl for System Administration", the
otter book from O'Reilly).  You really otter get it (duck).  It's got tons
of good stuff for managing Macs, Win32 systems, *NIX, etc. and goes about
explaining how to do things on each of the different platforms.

Chris Hedemark - Hillsborough, NC
http://yonderway.com
----- Original Message -----
From: "Chris Hedemark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Aaron Petry" <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 1:48 PM
Subject: Re: Checking Free Disk Space in Win32


> # From "Perl for System Administration"
> use Win32::AdminMisc;
>
> ($total,$free) = Win32::AdminMisc::GetDriveSpace("c:\\");
>
> print "$free bytes of $total bytes free\n";
>
> # Good luck, hope that helps!
> # -Chris
>
> ----- Original Message -----
> From: "Aaron Petry" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 1:45 PM
> Subject: Checking Free Disk Space in Win32
>
>
> > I've been looking for a way to check the free disk space on a drive in
> > Win32 all morning.  I could use a command input operator like `dir c:`
and
> > take the return value, but that gives me a whole file listing, and I'm
not
> > thrilled with breaking that up to find the "x bytes free" line.  I can't
> > find a switch for the dir command in Win 2k to show just the free space,
> > and if I search for a file that won't be there I just get "File Not
> > Found."  I haven't found anything in any modules that I have, and I
> thought
> > that someone here would know how to get the free disk space in a nice
> > way.  Does anyone have any suggestions?
> >
>
>


Reply via email to