Post a reply

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)


Topic review


synchronize and delete files

Hello everyone

I am new using this tool, use the following script to synchronize files from a remote folder called "cdr" to a local folder called "CDRTEST"
option batch abort
option confirm off
open sftp://root:Jksldes***@ -hostkey="ssh-Za26611 254 3c:81:t5:e7:41:79:00:a0:77:e7:d1:2a:c1:51:7c:b2"
synchronize local C:\Users\CDRTEST /cdr

the script works correctly, but I need to delete the files in the CDR folder after synchronizing them, any recommendations?

I had thought of the following line:
put -delete local C:\Users\CDRTEST /cdr

Is my interpretation correct?