Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
515 views
in .NET FTP by (150 points)
1?How to copy a file by the FTPConnection or FTPClient?

2?FTPClient and FTPConnection,also connect server, also login,also upload files, also down files, what difference?

thanks very much!

1 Answer

0 votes
by (51.2k points)
edited by
 
Best answer
1. There is no copy command in the ftp protocol so the only standards-compliant way to copy files is to download a file under the old name and upload it under the new name.  Specific servers may have custom commands for copying files.  If so, then it would be a 'site command' which can be invoked using our software.  You would need to check the server documentation.

2. FTPClient is the older interface and FTPConnection is the newer interface.  We recommend that you use the newer interface as it's more user-friendly and is compatible with our commercial software's SecureFTPConnection, should you find yourself needing that in future.
by (150 points)
thank you very much!

Categories

...