Click to See Complete Forum and Search --> : FileSystemObject Folder Count Question


theflyingminst
03-10-2009, 10:54 AM
Hi I've used something like this in the past with no problems:


if foldername.files.count < 35 then ..
else
...
end if


So I'm trying to do the same thing with counting folders:


if foldername.folders.count < 35 then ..
else
...
end if


And I'm getting a "Object doesn't support this property or method: 'folders'" error.

Any idears?

Thank you

theflyingminst
03-10-2009, 12:26 PM
Hey, I got it if any was wondering:

if foldername.SubFolders.Count < 35


Thanks