110,534
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Text;
using System.Net;
namespace TestConsoleApplication
{
class Program
{
static void Main(string[] args)
{
try
{
WebClient webClient = new WebClient();
webClient.DownloadFile("URL地址", "文件名称.后缀");//默认在bin目录下
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}