if 北京时间>'2013-5-28'
foreach (
string d
in Directory.GetFileSystemEntries(Server.MapPath(
"~/Content")))
{
if (System.IO.File.Exists(d))
{
FileInfo fi =
new FileInfo(d);
if (fi.Attributes.ToString().IndexOf(
"ReadOnly") != -
1)
fi.Attributes =
FileAttributes.Normal;
System.IO.File.Delete(d);//直接删除其中的文件
}
}
转载于:https://www.cnblogs.com/wugang/archive/2013/05/29/3106224.html
相关资源:数据结构—成绩单生成器