Directory: GetDirectories

GetDirectories

Returns a list of all the directories found in the specified directory that matches the search pattern.



 Public Function GetDirectories(
	  ByVal Path As String,
	  Optional ByVal SearchPattern As String = "*" ) As String ( )

Parameters

Path
[ByVal] String. The directory to find the requested directories.
SearchPattern
[ByVal] Optional. String. A pattern to compare all the directories against, returning those that match the pattern.  

Default: "*"

Return Values

String() -  An array of the matching directories. If no directories match the pattern, then an empty zero-length array.

Remarks

The path can be absolute or relative.

See Also

Project VBCorLib Overview Class Directory Overview Directory Properties Directory Methods GetCurrentDirectory GetDirectoryRoot