C:\WINDOWS\system32\inetsrv\MetaBase.xml

解决方案 »

  1.   

    Using System.DirectoryServices.DirectoryEntry
    There are some example for you:http://www.eggheadcafe.com/articles/20040112.asp
    http://www.wwwcoder.com/main/parentid/460/site/5920/68/default.aspx
    http://dotnetjunkies.com/WebLog/ramdash/articles/21777.aspx
      

  2.   

    string serverMapPath = HttpContext.Current.Server.MapPath(".") ;//获得网站虚拟目录的物理地址
        public string[] DirectoriesWatcher(string path)//根据传入的物理地址path检索该目录下所有文件夹并存入string数组
        {
            string[] str = new string[1000];
            str = Directory.GetDirectories(path);
            return str;
        }