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-09-28 10:54 sanmao 閱讀(104) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 绍兴市| 穆棱市| 原平市| 莱阳市| 枞阳县| 呼玛县| 房产| 密山市| 托里县| 延吉市| 达州市| 陆丰市| 水城县| 凯里市| 潼关县| 靖边县| 清远市| 沙坪坝区| 田阳县| 长沙市| 仙游县| 清河县| 西安市| 浮梁县| 航空| 新源县| 岳普湖县| 太康县| 新竹县| 兰考县| 大荔县| 普兰店市| 罗定市| 专栏| 兴城市| 西平县| 临高县| 霍城县| 霍州市| 汉沽区| 商都县|