Server.MapPath on a different server
Posted on 2004-10-28
I have written a page that goes through a recordset of Photo IDs in the database and checks if the file of the same name exists in a physical folder. This works. However I dont know how to check a physical folder on a different server.
photoPath = "\\servername\images$"
strPhysicalPath = Server.MapPath(photoPath)
I thought the above would work but I get the error:
Server.MapPath() error 'ASP 0174 : 80004005'
Invalid Path Character(s)
How do I do this?