C#找到目录和其子目录的某个文件
string url = ""; string[] urls = Directory.GetFiles(目录, 文件名, SearchOption.AllDirectories); if (urls != null && urls.Length > 0) url = urls.First();
string url = ""; string[] urls = Directory.GetFiles(目录, 文件名, SearchOption.AllDirectories); if (urls != null && urls.Length > 0) url = urls.First();