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)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 延庆县| 高台县| 麟游县| 长兴县| 莱芜市| 香格里拉县| 乌兰浩特市| 宝坻区| 邛崃市| 疏勒县| 临朐县| 旺苍县| 沽源县| 万安县| 突泉县| 米易县| 巫山县| 文昌市| 黑水县| 柞水县| 剑川县| 定安县| 商城县| 宁德市| 南汇区| 普兰县| 澄江县| 望奎县| 沈丘县| 武川县| 商都县| 兴安县| 沙河市| 永胜县| 北安市| 修文县| 兴海县| 天祝| 河南省| 来宾市| 靖州|