文件删除函数

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 sweiquan 的 blog

<%
'文件删除函数 
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)
%>

本文关键:文件删除函数
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top