Reporting total sum of a folder (and its sub-folders)

(imported topic written by khouck)

I need to get the total size of a folder on our clients that has sub-folders under it. I found how to get the size of a specific folder:

sum of (size of it) of files of folders “c:\level1\levelA”

This returns the total size of folder “levelA”. However, there are other folders under “level1” (like “levelB”, “levelC”, etc). So, I want the total for folder “level1”.

Any suggestions?



(imported comment written by Jim23)

You can use the “descendants” object. For instance:

sum of (size of it) of descendants of folder “c:\level1\levelA”

There may be a better way but please note: Be VERY careful with this query as it can potentially be an expensive one in regards to evaluation time.

(imported comment written by khouck)

Perfect…that is exactly what I needed. I’ve also noted your word of caution. Thanks for the help, Jim.