权限问题
set rs=server.createobject("adodb.recordset")sqlcmd="select "&imgtype&" from wygkway where id="&id
rs.open sqlcmd,conn,1,1,1
imagename=imgtype&"/"&rs(0)
if imagename<>imgtype&"nothing" then
set fsk=server.createobject("scripting.filesystemobject")
if fsk.fileexists(server.mappath(imagename)) then
fsk.deletefile server.mappath(imagename)
end if
set fsk=nothing
end if
rs.close
set rs=nothing
删除的时候说我 这里 (fsk.deletefile server.mappath(imagename))没权限