You can probably try
string[] names = new string[] {"Venues", "Seminar", "Employees"};
foreach(string name in names)
{
FileInfo[] xlfiles = dir.GetFiles("*" + name + ".xls");
//Your file processing code here
}
Mujahid Khaleel
Web designing, development, E-commerce applications.
|