private void deletefile(System.IO.DirectoryInfo path)
{
foreach(System.IO.DirectoryInfo d in path.GetDirectories())
{
deletefile(d);
}
foreach(System.IO.FileInfo f in path.GetFiles())
{
f.Delete();
}
}
转载于:https://www.cnblogs.com/top5/archive/2012/11/08/2760144.html