in reply to Re: direcotories and spaced used
in thread direcotories and spaced used

Seems to work nicely on this NT box. Since I hate warnings, I took the ' K' out of your sprintf() and added to your print line.

Also, I don't think your return $total; does anything that wouldn't be done without it, does it?

Update: Ok, count me stupid (I already mentioned Monday, right?)! I guess the non-summing result looked useful enough to me? Thanks for clearing that up for me nop!

Just for the record, the result will be total of file size, not space used (the Windows Properties box reports both values).