Again Virtual Directory

  • Thread starter Thread starter lucky
  • Start date Start date
L

lucky

Hi guys,
Again asking Question regarding Virtual Directories. now i've got the
Virtual Directories list with the help of Michael.
the code is used to get the virtual directory is

System.DirectoryServices.DirectoryEntry iisServer = new
System.DirectoryServices.DirectoryEntry("IIS://" + serverName +
"/W3SVC/1/Root");

now, to take my application further i need to retrive some files
information in that virtual directory or from the directory that
virtual
directory is pointing to.

the path return by the iisServer object is the "IIS://......." that is
not the physical path of the directory. and i want to know the physical
path of the directory.

can anyone please help me to get through this problem?

thanks,
Lucky
 
Hi Guys,
I forgot to mention the tools i'm using.
those are :

c#.net 2005 (VS.NET 2005)
IIS 5.0 oir later

Lucky
 
Back
Top