public static void Search(string dirpath, string searchpattern)
{
string[] sFiles = Directory.GetFiles(dirpath, searchpattern);
foreach (string sFile in sFiles)
{
}
string[] sDirs = Directory.GetDirectories(dirpath);
foreach (string sdir in sDirs)
{
Search(sdir, searchpattern);
}
}