How can I list directories & files in a directory and look in those files in the directories found and so on. and check for files like Stackoverflow.exe or "*.exe"
Attempt:
string[] dirs = Directory.GetDirectories(rootdir);
string[] Drs = Directory.GetDirectories(dirs.ToString());
string[] filesp2 = Directory.GetFiles(dirs.ToString());
Console.WriteLine(String.Join(Environment.NewLine, dirs));
Console.WriteLine(String.Join(Environment.NewLine, Drs));
Console.WriteLine(String.Join(Environment.NewLine, filesp2));
Is there a answer to this question? -HoverNot