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)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 邛崃市| 城市| 卓尼县| 枣阳市| 阳东县| 长岛县| 吴忠市| 金阳县| 饶阳县| 桦川县| 久治县| 调兵山市| 卢龙县| 安国市| 邵武市| 盐津县| 昌都县| 沙雅县| 伽师县| 迭部县| 灵寿县| 安西县| 旬阳县| 从江县| 翁源县| 涟水县| 新郑市| 盘山县| 景东| 京山县| 依兰县| 岗巴县| 吉安县| 南投市| 内江市| 中超| 永嘉县| 布拖县| 特克斯县| 牡丹江市| 泸水县|