public void Dirs(string path)
                  {
                      DirectoryInfo dis = new DirectoryInfo(path);
                      FileInfo[] files = dis.GetFiles();
                      foreach (FileInfo fi in files)
                      {
                          i++;
                          Application.DoEvents();
                          this.label1.Text = i.ToString();
                          GetSqlFile(fi.FullName, this.textBox1.Text + fi.DirectoryName.Substring(2), fi.FullName.Substring(fi.FullName.LastIndexOf("\\") + 1), 1024, 768);
                      }
                      if (dis.GetDirectories().Length > 0)
                      {
                          for (int i = 0; i < dis.GetDirectories().Length; i++)
                          {
                              Dirs(dis.GetDirectories()[i].FullName);
                          }
                      }
                  
                   
                  }

          文章來源:http://www.cnblogs.com/wangdetian168/archive/2008/12/21/1359229.html
          posted on 2010-10-11 09:28 sanmao 閱讀(138) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 孝义市| 嘉兴市| 成武县| 泽州县| 沈阳市| 嘉荫县| 马鞍山市| 合川市| 陆丰市| 横峰县| 壶关县| 皮山县| 嘉兴市| 和政县| 潍坊市| 炉霍县| 芷江| 蒲江县| 隆回县| 新河县| 漳平市| 龙南县| 合水县| 洛隆县| 西贡区| 额敏县| 丹寨县| 宿迁市| 永安市| 昂仁县| 临邑县| 奇台县| 栾川县| 六安市| 台安县| 儋州市| 句容市| 那坡县| 繁昌县| 班戈县| 安平县|