Asp删除文件操作
2011年09月01日
sub deletefiles(filename)
if filename"" then
filename = server.MapPath(filename)
set fso=server.CreateObject("scripting.filesystemobjec t")
if fso.FileExists(filename)=true then
fso.DeleteFile filename
end if
set fso=nothing
end if
end sub %> 利用call deletefiles("../"&rs("bigpic4")) 这是调用方法
还有个是这样写的
2011年09月01日
sub deletefiles(filename)
if filename"" then
filename = server.MapPath(filename)
set fso=server.CreateObject("scripting.filesystemobjec t")
if fso.FileExists(filename)=true then
fso.DeleteFile filename
end if
set fso=nothing
end if
end sub %> 利用call deletefiles("../"&rs("bigpic4")) 这是调用方法
还有个是这样写的