in reply to Re^2: Get the available space in a partition using as input a directory?
in thread Get the available space in a partition using as input a directory?

Yup, you're right.

Here's an updated kludge:

my $free = ( split "\n", qx{ dir } )[-1]; $free = ( split ' ', $free )[2]; $free =~ s/\D//g; print $free;

Works for at least French and English...

  • Comment on Re^3: Get the available space in a partition using as input a directory?
  • Download Code