删除指定路径的文件
string path = this.Server.MapPath("XXXXX"); //路径
FileInfo file = new FileInfo(path);
if (file.Exists == true)
{
file.Delete();
}
string path = this.Server.MapPath("XXXXX"); //路径
FileInfo file = new FileInfo(path);
if (file.Exists == true)
{
file.Delete();
}
暂无评论。
评论功能维护中,当前仅展示历史评论。