Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Just prefix your cp command with call command, like in my example above.

Though actually, you will need to remove the operation mask from the destination path, as the shell cp command does not support it. And it is not necessary anyway:
call cp /home/orderfiles/DAT/*.csv /home/orderfiles/DAT/Backup/
Jens Kristensen

I have never used a Shell command - always used .bat/txt files. How should then script be written and how do I execute the shell command?
I have to be able to execute it from i.e. a command prompt - is that possible?
Jens Kristensen

Copy file on remote FTP server

Hi, I would like to copy all files to a backup folder on the FTP server before I download and delete the files.

I'm using the following command lines to do this.
Option Batch on
Option confirm off
Open sftp://username:password@ftpserver.com
cd /home/orderfiles/DAT/
Lcd M:\iPadOrdre\DAT\
cp /home/orderfiles/DAT/*.csv /home/orderfiles/DAT/Backup/*.csv

But i get this error message:

Operation not supported.

How does the CP command work ?
Perhaps there is a other command to backup files before downloading files?