asp 删除图片与文件函数

作者:简简单单 2009-07-29


fso filesystemobject对象的deletefile函数来实现删除,方法简单的,下面我们来看看下面的实例吧。

我们会利用

function delfile(path)
dim fso
response.write(server.mappath(path))
response.end
set fso=server.CreateObject("scripting.filesystemobject")
if fso.fileexists(server.mappath(path)) then
fso.deletefile(server.MapPath(path))
end if
fso.close
end function

相关文章

精彩推荐