Whoever wrote: > Am Mit, 2003-05-28 um 17.53 schrieb Jaschar Otto: > > I've found using Win32::AdminMisc pretty handy, specifically the > > GetDriveSpace($drive) funtion. > > the problem with GetDriveSpace and most similar functions is, > they just tell you the partition size of windows partitions, > not the physical size. If you use i.e. a linux and a windows > partition it doesn't work because windows got no drive number > for the linux partitions. Win32::OLE was the online windows > solution i found, it tells you the real size of the harddisk, > independent from partitions.
Hi. Try Win32::DriveInfo like this. use Win32::DriveInfo; my @c_drive = Win32::DriveInfo::DriveSpace('C'); my $bytes_free = $c_drive[6]; print $bytes_free, "\n"; OUTPUT 8508334080 Once you've installed it take a look at perldoc Win32::DriveInfo for all the other stuff it will do for you. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]