Programming Reference Manual
 
Syntax
 
DCount(dirspec$)
 
Description
Returns the number of directories under the current directory that match the dirspec$ criteria. Wildcards, like ‘?’ and ‘*’ are supported.
 
Parameter
Description
dirspec$
pathspecification including wildcards.
See Also
Example
 
Sub Main
Debug.Print DCount(“C:\*.*”)
End Sub