ITeye博客

删除指定路径的文件

LvMax · 2011-05-04 17:59 · Asp.net笔记 · 编程语言 · Markdown


string path = this.Server.MapPath("XXXXX");   //路径
FileInfo file = new FileInfo(path);
if (file.Exists == true)
{
    file.Delete();
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。