Hi ,
I need to check whether file exists in the folder in the server side. Fso.FileExists always returns false irrespective of file exists. In the code M is the Mapped drive. IIS User has full permissions on the mapped drive. Please help me in solving the problem.
<%
Set fso = Server.CreateObject("Scripting.FileSystemObject")
sPathWithoutExt = "M:\\" & Request("order_no") & "\\" & Request("order_no")
If fso.FileExists(sPathWithoutExt & ".pdf") Then
sPath = "http://www.testsite.com/images/" & Request("order_no") & "/" & Request("order_no")& ".pdf"
Else
spath = "http://www.testsite.com/images/" & Request("order_no") & "/" & Request("order_no")& ".tif"
End If
Set fso = Nothing
%>
krishna Rao