I hope i understood this...

you have a folder with subfolders in it. and you want the size of the number of files in each subfolder of a given file type/types??

Code:

$root = "%userprofile%\desktop\temp"
$folders = dirplus($root,'/ad /s1')
for each $folder in $folders
$files = dirplus($folder.path,'/s /a-d /f mp3 avi jpg gif wmv')
for each $f in $files
$folsize = $folsize + $f.size
next
? $folsize " " $folder.path
$folsize=0
next



Edited by Bryce (2006-02-09 05:31 PM)