相关文章  
  • web集群服务的负载均衡方案选择与实现
  • 在Win 2003环境中设置一个Web服务器
  • 建立大容量Web界面的Email系统
  • 用SQLXML3把存储过程暴露为Web服务
  • IIS 操作失败诊断指南
  • IIS永远的后门
  • 提高IIS 5.0网站服务器的执行效率
  • IIS 5.1和IIS 6.0一些显著的重要区别
  • 深入剖析Windows IIS 6.0(1)
  • 深入剖析Windows IIS 6.0(2)
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    IIS控制管理(Web虚拟目录创建管理)6

     {
      string strPath = "IIS://" + _server + "/W3SVC/" + _website + "/ROOT/" + newdir.Name;
      if(!_virdirs.Contains(newdir.Name) || _batchflag )
      {
      try
      {
      //加入到ROOT的Children集合中去
      DirectoryEntry newVirDir = rootfolder.Children.Add(newdir.Name,"IIsWebVirtualDir");
      newVirDir.Invoke("AppCreate",true);
      newVirDir.CommitChanges();
      rootfolder.CommitChanges();
      //然后更新数据
      UpdateDirInfo(newVirDir,newdir);
      return true;
      }
      catch(Exception ee)
      {
      //throw new Exception(ee.ToString());
      return false;
      }
      }
      else
      {
      return true;
      //throw new Exception("This virtual directory is already exist.");
      }
      }
      //得到一个虚拟目录
      public VirtualDirectory GetVirDir(string strVirdir)
      {
      VirtualDirecto

    页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]6页、共10页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved