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  bestsaler  阅读(135)  评论(0编辑  收藏  举报