Home All Groups Group Topic Archive Search About

Again Virtual Directory

Author
17 Aug 2006 12:22 PM
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

Author
17 Aug 2006 12:24 PM
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

Lucky wrote:
Show quoteHide quote
> 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
Author
17 Aug 2006 5:41 PM
Smokey Grindle
I think you ment to post this in the aspnet group


Show quoteHide quote
"Lucky" <tushar.n.pa***@gmail.com> wrote in message
news:1155817478.359483.300370@75g2000cwc.googlegroups.com...
> 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
>
> Lucky wrote:
>> 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
>