468,554 Members | 1,896 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,554 developers. It's quick & easy.

Webservice finding Virtual Directory Names

I have a Web Service that needs to find a Virtual Directory name, determine
the actual path of that directory, then read / write files to that directory.
How can I find a virtual directory then determine it's properties?
Nov 23 '05 #1
2 3438

You can use HttpRequest.MapPath to map a virtual directory to a physical
path.
http://msdn.microsoft.com/library/de...pathtopic2.asp

For more specific action you can use IIS SDK with System.DirectoryServices
classes to make some administrative stuff on IIS. See
http://msdn.microsoft.com/library/de...7250629909.asp
for more.

Lionel.

"Steven J. Reed" <St*********@discussions.microsoft.com> a écrit dans le
message de news: BC**********************************@microsoft.com...
I have a Web Service that needs to find a Virtual Directory name, determine
the actual path of that directory, then read / write files to that
directory.
How can I find a virtual directory then determine it's properties?

Nov 23 '05 #2
Once I figured out that MapPath wanted \<Share> as it's parameter this worked
fine!

Thanks...Steve

"Lionel LASKE" wrote:

You can use HttpRequest.MapPath to map a virtual directory to a physical
path.
http://msdn.microsoft.com/library/de...pathtopic2.asp

For more specific action you can use IIS SDK with System.DirectoryServices
classes to make some administrative stuff on IIS. See
http://msdn.microsoft.com/library/de...7250629909.asp
for more.

Lionel.

"Steven J. Reed" <St*********@discussions.microsoft.com> a écrit dans le
message de news: BC**********************************@microsoft.com...
I have a Web Service that needs to find a Virtual Directory name, determine
the actual path of that directory, then read / write files to that
directory.
How can I find a virtual directory then determine it's properties?


Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Peter Schmitz | last post: by
4 posts views Thread by david | last post: by
1 post views Thread by Eric Voigt | last post: by
1 post views Thread by Frank Uray | last post: by
2 posts views Thread by zion | last post: by
11 posts views Thread by bob | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.