[CODE]<% '删除文件 Set FSO=Server.CreateObject("scripting.filesystemobject") set FSO=server.createobject("scripting.filesystemobject") D=server.mappath("123.jpg") FSO.deletefile D,ture Set FSO = Nothing %>[/CODE]
'删除图片函数,purl为图片的文件名 function delimg(purl) on error resume next dim fso set fso=server.CreateObject("Scripting.FileSystemObject") fso.DeleteFile server.MapPath("../upImages/" & purl),true set fso=nothing end function