Programming Reference Manual
 
Syntax
 
Result = DOSError()
 
Description
Returns the number of directories under the current directory that match the dirspec$ criteria. Wildcards, like ‘?’ and ‘*’ are supported.
 
Parameter
Description
Results
Boolean. Returns True if the last Fast File operation resulted in a error. Inspect the error code using WhichError.
See Also
Example
 
Sub Main
Debug.Print DCount(“C:\*.*”)
End Sub