递归
static string Path = "";
static void Find(string path)
{
var directory = Directory.GetDirectories(path);
foreach (var t in directory)
{
if (Regex.Match(t.Trim(), @"[^\\]*$").Value == "Macromedia")
{
Path = path;
return;
}
else if (Directory.GetDirectories(path).Length > 0)
Find(t);
}
}
递归