public static void DownLoadFromUrlToLocal(string strFilePath, string filename)
{
WebClient myWebClient = new WebClient();
myWebClient.DownloadFile(strFilePath, filename);
}
调用方式如下:
远程服务器文件下载,OK
本地文件下载,OK

public static void DownLoadFromUrlToLocal(string strFilePath, string filename)
{
WebClient myWebClient = new WebClient();
myWebClient.DownloadFile(strFilePath, filename);
}
调用方式如下:
远程服务器文件下载,OK
本地文件下载,OK