从服务器下载文件

时间:2015-04-07 15:39:11

标签: webclient server.mappath

如何使用WebClient广告Server.MapPath从服务器下载文件并将其下载到桌面? 例如:

 WebClient Client= nre WebClient();
 Client.DownloadFile(Server.MapPath("~/Files/")+fileRoute,@"~/Desktop/"+fileName);

0 个答案:

没有答案