0

Is it possible to use File.Copy to copy a file to a FTP server?

This is what I had in mind:

try
        {
            File.Copy(@"C:/test.txt", @"myFTP URL");
            MessageBox.Show("Copy Successfull.");
        }

        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }
ferdi0314
  • 25
  • 6

1 Answers1

0

Brendan is right. Using the FtpWebRequest class I was able to upload files.

ferdi0314
  • 25
  • 6