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);
                          }
                      }
                  
                   
                  }
          posted on 2010-12-24 15:48 sanmao 閱讀(128) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 定州市| 盐亭县| 丁青县| 鹿邑县| 安徽省| 浮梁县| 岑巩县| 腾冲县| 绿春县| 赣榆县| 太谷县| 大同市| 建始县| 阿拉善右旗| 绩溪县| 会东县| 峨边| 从化市| 江华| 泰宁县| 河南省| 靖西县| 华坪县| 合水县| 建昌县| 乳山市| 饶平县| 阿图什市| 固阳县| 济南市| 南溪县| 隆安县| 鹤峰县| 博野县| 双柏县| 静安区| 泾源县| 城口县| 长葛市| 新干县| 昌宁县|