Counting the Number of Folders Not Files.

R

Ron

I can count the number of files in a directory by using
foundfiles.count property, but what would I use to count
the number of folders(directories)?
 
B

Bob Phillips

or without the reference

MsgBox
CreateObject("Scripting.FileSystemObject").GetFolder("C:\Temp").SubFolders.C
ount
 
Top