I have the routine below but can't find the problem. See that ok is printed, so the path is correct.
thanks.
Code:
<%
On Error Resume Next
dim fso
set fso = Server.CreateObject("Scripting.FileSystemObject")
if fso.FileExists(fso.getFolder("c:\inetpub\websci\image\SVM\") & "\" & request("produto") & ".jpg") Then
response.write "ok"
response.write("<img width=100% src=image/SVM/" & request("produto") & ".jpg>")
response.write("<br><br><div align=center class=textopreto>" & request("produto") & "</div>")
Else
response.write("<div align=center class=erro>The product " & request("produto") & " is not available!!</div>")
response.write("<br><br><div align=center><a class=button href=javascript:this.close()>Close</a></div>")
End If
set fso = nothing
If Err.Number <> 0 Then
response.write("<div align=center class=erro>Page error</div>")
End If
%>
thanks.