<%
'文件删除函数
function deletefile(filename)
if filename<>"" then
set fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(filename) then
fso.deletefile filename
else
response.write "<script>alert('该文件不存在');</script>"
end if
end if
end function
strfile=server.mappath("filename")
deletefile(strfile)
%>