Check if a virtual directory exists in IIS ??

  • Thread starter Thread starter Gogutz
  • Start date Start date
G

Gogutz

Hi: Is ther a way to check at runtime if a certain virtual directory
already exists on a certain machine? Thanks in advance. PS: I use C#,
VS 2003, .NET Framework 1.1, W2003.
 
Yes, check
Using System.DirectoryServices to Configure IIS in msdn.
The same can be done using the System.Management classes.

Willy.
 
Thanks Willy,

I will try it!

Willy Denoyette said:
Yes, check
Using System.DirectoryServices to Configure IIS in msdn.
The same can be done using the System.Management classes.

Willy.
 
Hi Willy,

Your suggestion (DirectoryServices) worked fine on w2003 ... But I
need the same thing on a w2000 server (on which it crashed ...).

I am still searching for a solution in the System.Management classes
.... but so far so ... bad. Thanks in advance!
 
Back
Top