Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to calculate, and breakdown, average file sizes for a given directory (or drive)?

Something that can give details such as:|

  • Files of 4KB - 22KB: account to 20% of all files
  • Files of 32KB - 64KB: account to 10% of all files
  • Files of 1MB - 20MB: account to 70% of all files

And so on.

Perhaps you know of a utility that can do that?

share|improve this question

3 Answers 3

Someone over at Seven Forums pointed me out to Agent Ransack from Mythicsoft:

Had to make the calculations on my own but it wasn't so bad.

share|improve this answer

You can do this pretty easily in Powershell

$foo = (Get-ChildItem -path "c:\your\file\path" -recurse | measure-object | select -expand Count)

$bar = ((Get-ChildItem -path "c:\your\file\path" -recurse | Measure-Object -property length -sum).sum /1MB)

$avrg = $bar / $foo


Output example:

PS X:> $avrg


share|improve this answer

Maybe this is helpful?

It is slow but acurate, don't know for shure if it avarages files in a directory.

share|improve this answer
Thanks but I have already tried it. It doesn't report the information I need - the closest it get's is dividing the folder contents by file extension which is irrelevant for me –  pilau Nov 1 '12 at 12:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.