📅  最后修改于: 2022-03-11 14:48:48.681000             🧑  作者: Mango
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("username", "password");
client.DownloadFile(
"ftp://ftp.example.com/remote/path/file.zip", @"C:\local\path\file.zip");