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

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


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

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 右玉县| 临高县| 安岳县| 扬州市| 云阳县| 嘉祥县| 清水河县| 丘北县| 湄潭县| 阳泉市| 新郑市| 裕民县| 阳城县| 汪清县| 余干县| 石门县| 新余市| 宜城市| 临沧市| 天全县| 竹溪县| 肥西县| 象山县| 临猗县| 应城市| 开封县| 温宿县| 剑阁县| 三门县| 浪卡子县| 蕲春县| 焉耆| 灵石县| 宜川县| 阿拉善右旗| 兰州市| 迁西县| 屏南县| 遵义市| 霍州市| 神池县|