DirectoryInfo dir = new DirectoryInfo(Path);
foreach (DirectoryInfo df
in dir.GetDirectories())
{
if (df.ToString().Length != 18)
{
StreamWriter sw
= new StreamWriter(@"Paht",true,Encoding.UTF8);
sw.WriteLine(Path
+":"+df);
sw.
Close();
}
DirectoryInfo fdir
= new DirectoryInfo(Path+df+@"\");
// int i = 0;
if (!Directory.Exists(fdir.ToString()))
{
StreamWriter sw
= new StreamWriter(@"Path", true, Encoding.UTF8);
sw.WriteLine(Path
+ ":" + df);
sw.
Close();
}
foreach (FileInfo dChild
in fdir.GetFiles("*.swf"))
{
// i++;
}
}

 

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2021-12-24
  • 2021-08-15
  • 2022-01-30
  • 2021-07-01
猜你喜欢
  • 2022-01-07
  • 2022-02-02
相关资源
相似解决方案