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

Re: create script that synchronizes files and deletes synchroniz

synchronize remote -criteria=size -filemask=file_to_synchronize.ext c:\local_folder /remote_folder
Mahdi Bashiri

Re: create script that synchronizes files and deletes synchroniz

martin wrote:

The -criteria is switch of synchronize command, not put.
https://winscp.net/eng/docs/scriptcommand_synchronize

Hi
May i ask you to define criteria switch for put command if possible, and i would like to know how can i use syncronise command to upload only specified file ( not entire directory) to remote site.

Regards,
Mahdi
Mahdi Bashiri

Re: create script that synchronizes files and deletes synchroniz

martin wrote:

Please read FAQ:
https://winscp.net/eng/docs/faq_delete_synchronized_files

If that does not help, come back.


Hi
I used below command to auto transfer (Upload) to remote site:

winscp /command "option batch abort" "option confirm off" "open RemoteSite" "put E:\Backup_*.* / -criteria=size -delete" "exit" > E:\RemoteSiteUpload.txt

but i got below error

batch abort
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "username".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] RemoteSite
Unknown switch 'criteria'.


please let me know how can i fix it.
Regards,
Mahdi
Mahdi Bashiri

create script that synchronizes files and deletes synchroniz

Hi
I have created script that synchronizes files from local path to remote site and deletes source files afterward, but in sometimes the file does not transfer completely by link down or remote site load traffic, i would like to know can i use "-criteria=size" before "-delete" option or no like this:
synchronize remote D:\IscFtp\BLC\SND_SP BLC\SND_SP -criteria=size -delete
please let me know this script line is correct ot need more issue to do this

Regards,
Mahdi