I need to get list of files on some drive with paths that matches specific pattern, for example FA\\d\\d\\d\\d.xml where \\d is digit (0,1,2..9). So files can have names lik
You could do something like:
System.IO.Directory.GetFiles(@"C:\", "FA????.xml", SearchOption.AllDirectories);
Then from your results just iterate over them and verify them against your regex i.e. that the ? characters in the name are all numbers
?