Take the 2-minute tour ×
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
add comment

3 Answers

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

http://www.mythicsoft.com/page.aspx?type=agentransack&page=home

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

share|improve this answer
add comment

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

$avrg

Output example:

PS X:> $avrg

1.03643417358398

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.