How to get the IIS virtual dir & web application's physical paths with C# code?

后端 未结 3 1826
你的背包
你的背包 2020-12-06 03:41

I am writing a web application deployment verification tool and I need to check the physical folder structures of Web Applicatons and Virtual Folders.

How can this

3条回答
  •  死守一世寂寞
    2020-12-06 04:33

    You can do this kind of thing using WMI:

    Using WMI to configure IIS.

    Administering IIS programatically.

    And you can use WMI from C# (google for "WMI C#").

    So, yes, this is possible.

提交回复
热议问题