in reply to Re: 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?

bytes free
Aren't MS Windows localized, i.e. this would work only for English users?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^2: Get the available space in a partition using as input a directory?

Replies are listed 'Best First'.
Re^3: Get the available space in a partition using as input a directory?
by Not_a_Number (Prior) on Jul 12, 2013 at 19:38 UTC

    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...