I need to count the number of excel files,pdf files from a directory.
I have Counted the total number of files from a directory using
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"D:\");
int count = dir.GetFiles().Length;
Any Suggestion?