Tuesday, 29 May 2012

Get Files From a Folder C#


DirectoryInfo dirInfo = new DirectoryInfo("D:/Hema/Projects/Excel");
foreach (FileInfo f in dirInfo.GetFiles("*.xls"))
{
MessageBox.Show(f.Name);

}

No comments:

Post a Comment