C#怎样从指定服务器上下载指定文件到本地电脑上
using System;
using System.Net;
namespace ConsoleApplication2
{
class Program
{
public static void Get_img()
{
try
{
WebClient wClient = new WebClient();
wClient.DownloadFile("http://xxxxxxx/wKiFR1XIHriAQ3M1AAr915dq3c4344.jpg", "E:\\1.jpg");
}
catch (Exception ex) { string aa = ex.Message; }
}
static void Main(string[] args)
{
Get_img();
}
}
}