string path = this.Server.MapPath("XXXXX"); //路径
FileInfo file = new FileInfo(path);
if (file.Exists == true)
{
file.Delete();
}
删除指定路径的文件
最新推荐文章于 2024-10-11 16:10:01 发布
string path = this.Server.MapPath("XXXXX"); //路径
FileInfo file = new FileInfo(path);
if (file.Exists == true)
{
file.Delete();
}