C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着

      public void Dirs(string Path)
        {
         
            System.IO.DirectoryInfo dirs = new System.IO.DirectoryInfo(Path);
            foreach (FileInfo fi in dirs.GetFiles("*.htm"))
            {

                Process.Start("IExplore.exe", fi.FullName);
            }
          
            if (dirs.GetDirectories().Length > 0)
            {
                foreach (DirectoryInfo di in dirs.GetDirectories())
                {
                    Dirs(di.FullName);
                }
            }
        }

posted on 2008-12-06 10:07  王德田  阅读(216)  评论(0编辑  收藏  举报