首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C# 文件下载的有关问题

2012-01-20 
C# 文件下载的问题我想作一个文件下载的程序.我现在知道一个URL地址如 http://0.0.0.0/URL 在URL下面还

C# 文件下载的问题
我想作一个文件下载的程序.

我现在知道一个URL地址如 "http://0.0.0.0/URL "

在URL下面还有一层文件夹并且文件名不知道.

请高手.指点...

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

热点排行