// wcftpget.cs using System.Net; class WebClientFtpGet { static void Main() { WebClient wc = new WebClient(); wc.Credentials = new NetworkCredential("user01", "mypassword"); wc.DownloadFile("ftp://servername/pub/secret.png", "tmp.png"); } } // コンパイル方法:csc wcftpget.cs