using System; using System.Collections.Generic; using System.IO; using System.Linq;
...
DirectoryInfo di = new DirectoryInfo(@"E:\\~shares\\util\\SysinternalsSuite"); List<FileSystemInfo> files = Enumerable.ToList(di.GetFileSystemInfos());
var output = from f in files select f;
Console.WriteLine(output.Count(f => f.FullName.Contains("autoruns")));