The My.Computer.FileSystem.GetFiles Method returns a read-only collection of strings representing the path names for the files. You can use the wildCards parameter to specify a specific pattern. If you would like to include subdirectories in the search, set the searchType parameter to SearchOption.SearchAllSubDirectories.
An empty collection is returned if no files matching the specified pattern are found.
To find files with a specified pattern
The following conditions may cause an exception:
Tasks
Reference