Help for this page

Select Code to Download


  1. or download this
    my $size = 0;
    $size += (-f $_ ? -s _ : 0) for (<*>);
    print $size;
    
  2. or download this
    1) ($Total)=( (qx{dir /s "$UncSharePath"})[-2]=~ /([\d,]+) bytes/ )
    
    2) find(sub { $total += -s }, $dir);