Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Windows » Programming   (RSS)

How to Get IIS Web Sites Information Programmatically

I needed to get the location of IIS log files on my servers, after doing a quick investigation, I am quite amazed on how much information are exposed via managed code. This snippet will return the name of the sites and the location of the log files. foreach
 
Page view tracker