我想作一个文件下载的程序.我现在知道一个URL地址如"http://0.0.0.0/URL"在URL下面还有一层文件夹并且文件名不知道.请高手.指点...

解决方案 »

  1.   

    Dim   dirInfo   as   New   DirectoryInfo(Server.MapPath("images"))           
              articleList.DataSource   =   dirInfo.GetFiles("*.*")   
      

  2.   

    那你先遍历URL文件夹,再找出你想要的文件夹
      

  3.   

    string path = Server.MapPath("URL/");
            DirectoryInfo di = new DirectoryInfo(path);
            if (di.Exists)
            {
                foreach (DirectoryInfo i in di.GetDirectories())
                {
                    Response.Write(i.Name);
                }
            }
      

  4.   

    对不起,我没有说明白.我用的是VS2005 在WINFORM中作的啊...