0

How to Move File with the folder in a ftp file path to local directory using C#

private void button2_Click(object sender, EventArgs e){
    using (WebClient ftpClient = new WebClient()) {
        ftpClient.Credentials = new System.Net.NetworkCredential("RAYSOFT", "raysoft");
        ftpClient.DownloadFile("ftp://RAYSOFT@192.168.8.101/10001/ajax.txt", @"C:\\SmartProject\ajax.txt");
    }
}
TarangP
  • 2,711
  • 5
  • 20
  • 41
kasun
  • 11
  • 4

0 Answers0