Directory: GetFileSystemEntries

GetFileSystemEntries

Returns both directories and files that match the specified pattern.



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

Parameters

Path
[ByVal] String. The directory to search for the files and directories.
SearchPattern
[ByVal] Optional. String. The pattern the filenames and directories must match.  

Default: "*"

Return Values

String() -  The list of files and directories that matched the pattern. If no files or directories matched the pattern, then an empty, zero-length array is returned.

Remarks

The path can be absolute or relative.

See Also

Project VBCorLib Overview Class Directory Overview Directory Properties Directory Methods GetFiles GetLastAccessTime