using
System;using
System.Collections.Specialized;using
System.ComponentModel;using
System.Data;using
System.Drawing;using
System.Web;using
System.Web.SessionState;using
System.Web.UI;using
System.Web.UI.WebControls;using
System.Web.UI.HtmlControls;using
System.DirectoryServices;namespace
SearchIIS{
{
{
{
GetIISVirtualDirectories();
}
}
#region
Web Form Designer generated code{
InitializeComponent();
}
{
}
#endregion
{
DirectoryEntries dirEntries =
null;DirectoryEntry dirEntry =
null;{
dirEntry =
new DirectoryEntry(provider);dirEntry.RefreshCache();
dirEntries = dirEntry.Children;
{
Response.Write("IIS Virtual Directories: " + (objDir.Name.ToString()) + "
");
");
}
dirEntry.Dispose();
}
catch(Exception Ex)
{
Response.Write(Ex.Message);
}
}
}
}
No comments:
Post a Comment