>>DirectoryEntry virtualDir = IISAdmin.Children.Find("Root", "IIsWebVirtualDir"); >>>>
>DirectoryEntry IISAdmin = new DirectoryEntry("IIS://localhost/W3SVC/1" ); >Hi Paul,
if (dirs.Path == "IIS://localhost/W3SVC/1/IISHelp")to
if (dirs.Path == "IIS://localhost/W3SVC/1/Root/IISHelp")Again, thanks. Don't think I would have managed to solve this without your help.