List<string> fileList = new List<string>(); DirectoryInfo di = new DirectoryInfo(@"E:\Data\CommercialEOB\MRDF\"); FileInfo[] fi = di.GetFiles("*.txt"); if (fi.Length != 0) { foreach (FileInfo file in fi) { Console.WriteLine(file); mc.MRDF = file.ToString(); mc.logPath = @"C:\temp"; mc.Run(); } } else { throw new Exception("No File Exists ", new Exception()); } } Thanks, arep