I need to verify the contents of a directory based on the size and or number of files in a given directory. Anyone have any ideas how to obtain such information?

For example:
Code:


$DirSize = GetDirSize('C:\Windows\System32')
If $DirSize < 1024
...
EndIf



Thanks for your help guys.
Chris