c# 刪除文件

string url = Server.MapPath("p_w_picpath/bg.gif");         if (!File.Exists(url))         {             ClientScript.RegisterStartupScript(GetType(), "", "alert('文件不存在!');", true);         }         else         {             File.Delete(url);             ClientScript.RegisterStartupScript(GetType(), "", "alert('文件已刪除!');", true);         }
相關文章
相關標籤/搜索