var path = SourcePdfPath1;
var files = from file in Directory.EnumerateFiles(path, "*.pdf", SearchOption.AllDirectories)
//where Path.GetFileName(file).ToLower().Contains(N_fileName)
where Path.GetFileName(file).Contains(N_fileName)
select file;
foreach(var file in files) {
Console.WriteLine("{0}", file);
wavFiles.Add(file);
}
Console.WriteLine("{0} files found.", files.Count < string > ().ToString());
Getfilenames = wavFiles.ToArray();