Andrew,
Thanks for such a quick response. I had just thought about that. I
appreciate it. Thanks again.
Chris
"Andrew Urquhart" <> wrote in message
news:qiFdc.134$...
> Chris Guimbellot wrote:
> > 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?
>
> Use the FolderExist method of the FileSystemObject in conjunction with
> Server.MapPath. The return value of FolderExist() is the Boolean you're
> looking for in your example.
> --
> Andrew Urquhart
> - Contact: www.andrewu.co.uk/contact/
> - Employ me: Front/middle tier ASP developer with WAI & web standards
>
>