📜  c# ftp 文件下载 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:48.681000             🧑  作者: Mango

代码示例1
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");