string[] dirs = Directory.GetDirectories(@"E:\", "wall*", SearchOption.AllDirectories); foreach (string dir in dirs) { Messagebox.Show(dir) } it will find directory whose name startswith "wall" in e:/ drive. and in messagebox it will give you the full path of directory.