Archived Forum Post

Index of archived forum posts

Question:

How to copy file stored in folder in A on remote server to folder B on same server?

May 19 '13 at 21:21

How to copy file stored in folder in A on remote server to folder B on same server? I want to create stored procedure on SQL Server to copy a file stored in folder in A on remote server to folder B on same server. How can i do that using Chilkat's FTP2?


Answer

The FTP protocol does not have a "copy" command. In other words, there is no command an FTP client can send to the FTP server to tell it to copy one of it's remote files to another path. You can rename a file, thus moving it from one path to another. Or, you can download and then re-upload to the new path. This is not a limitation in Chilkat -- it is a limitation in the FTP protocol itself.