I want to be able to check the numbers of files in a directory and the directories/folders total size.

I have a code that will check file size
but if i change the file into c:\folder\*.* I.E i get an error , and i tryed it without the *.* , same thing,

any ideas will be apreciated