By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,779 Members | 1,498 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,779 IT Pros & Developers. It's quick & easy.

How to get the application path :S

P: n/a
Dear friends :)

i need a hand guys

i'm implementing a small program to list all virtual directories to
the user and give him some facilities to move or delete these files,
fine??

i can easily retrieve the list of all virtual directories using the
code below
System.DirectoryServices.DirectoryEntry iISAdmin = new
System.DirectoryServices.DirectoryEntry("IIS://localhost/W3SVC/1/
root");

then where is the problem, thats a good question :)
my problem that i've been facing for 3 days now, or even more, is that
how can i get the physical or actual path of the virtual path returned
from the code snippet above.

for example i get from the above piece of code "IIS://localhost/W3SVC/
1/root/Webapplication1"
but i can't send this path as an argument to File.move() or
File.delete(), i get a not supported format exception
what am i using, thats another good question :) :), i'm using VS2003,
c# IIS6
P.S. this program i'm trying to develop is a desktop application and
not a web application for security wise.

Thank you all and waiting eagerly for ur replies

Feb 5 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.