Server.MapPath Object Question

  • Thread starter Chris Guimbellot
  • Start date
C

Chris Guimbellot

Hello,

ASP, VBScript, IIS5.

I have used the Server.MapPath object in the past in my web sites. What I am
trying to do is before I map a path, to see if the folder is there. If so,
map it. If not, do something else.

Is there a way to do this? I tried the following:

If Server.MapPath("testfolder") = True Then
Set objFile = Server.MapPath("testfolder")
End If

but of course that doesn't work because MapPath doesn't support a Boolean
value. Any ideas on what I need to do to accomplish this? Thanks,

Chris
 
C

Chris Guimbellot

Andrew,

Thanks for such a quick response. I had just thought about that. I
appreciate it. Thanks again.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Server.Mappath Help 2
Server.MapPath 2
Path=Server.MapPath 3
Server.MapPath() localhost 6
ASP Server.Mappath 0
Server.mappath 7
Server.MapPath("/") doesnt work 5
server.mappath method - please help 1

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top