asp判断图片存在,asp判断是否存在图片

比如图片:a.jpg

Set fso = CreateObject("Scripting.FileSystemObject")

path=server.mappath("/img/a.jpg")

If (fso.FileExists(path)) Then

response.write "ok"

else

response.write "no"

end if