asp.net|asp 删除图片与文件函数

更新时间:2016-01-13    来源:php函数    手机版     字体:

【www.bbyears.com--php函数】


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

本文来源:http://www.bbyears.com/jiaocheng/20928.html

猜你感兴趣