Get the local path from an IIS Path

  • Thread starter Thread starter Mookie
  • Start date Start date
M

Mookie

Hello...

I am new to ADSI and was looking for some assistance...

I am writing an application that will look to confirm IIS directories
and their settings.

I've been able to identify all the IIS directories but cannot get
information on their local path.

Does anyone know how retrieve the local path from the IIS Path?

I am using DirectoryEntry in C# and I take a look at the Path
property... it returns an IIS based path instead of the local path.

Any ideas????

Allen
 
HttpServerUtility.MapPath might be what you are looking for. It returns the
physical path of the file on the server corresponding to the virtual path on
the web.

Hope that helps
Mark.
 
Mark...

Thanks for the reply...but I am not doing this from the browser. I am
doing it as a PC-based application.

If you know of something that I could use...please let me know.

Thanks....Allen
 

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

Back
Top