Is it possible to get IIS root directory?

  • Thread starter Thread starter Shelby
  • Start date Start date
S

Shelby

Hi,

is it possible to get the IIS root directory in VB.net?
And I also would like to get all directories and virtual directories in IIS.
Is that possible?

Thanks
Shelby
 
Hi,

I was just looking in to this myself. You need to look at teh IIS metabase
to find this info. One other thing to note is that the Metabase is a binary
object in all versions except IIS6 (win2003 server) where it is now an XML
format.

I haven't done it yet but here are a couple of pages that look like they're
in the right direction for the binary (read tricky)- even if not in vb.net.

http://www.winnetmag.com/Article/ArticleID/26261/26261.html
http://www.winnetmag.com/Web/Article/ArticleID/26932/26932.html

G'luck.

Stu
 
Back
Top