If you are looking to search recursively for file then you can use following code
string[] str = System.IO.Directory.GetFiles("Path of directory", "*.exe", System.IO.SearchOption.AllDirectories);
for (int i = 0; i <= str.Length; i++)
{
MessageBox.Show(str[i]);
}
Gaurav Khanna