You can specify search pattern. You can use wildcard specifiers in the search pattern, e.g. "*.bmp" to select files with the extension or "a*" to select files beginning with letter ":a".
<br />
[C#]<br />
string[] filePaths = Directory.GetFiles(@"c:\MyDir\", "*.bmp");<br />