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 閱讀(142) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 南木林县| 托克逊县| 来宾市| 青龙| 凯里市| 铜山县| 武宣县| 昌江| 海兴县| 桂东县| 昌黎县| 阳新县| 公安县| 株洲市| 永泰县| 商河县| 瓦房店市| 海城市| 商都县| 博乐市| 喜德县| 射洪县| 乐清市| 崇礼县| 平凉市| 衡阳县| 泗洪县| 安多县| 海林市| 平罗县| 浙江省| 衡东县| 吉林省| 万载县| 玉溪市| 吉木萨尔县| 原平市| 武夷山市| 西平县| 剑川县| 偏关县|