PUT works not synchronize?

Advertisement

sahilarun
Joined:
Posts:
1

PUT works not synchronize?

Hi, I am trying to create a simple Batch file which executes below
winscp.exe /console /script=xyz.txt
the xyz.txt has following command
open WorldAPP.com
synchronize remote "F:\Manual Manifest\WorldAPP\" "/home/incoming/"
exit


I changed the above script to

open WorldAPP.com
put "F:\Manual Manifest\WorldAPP\" "/incoming/"
exit

which is now moving placing the file in remote directory.
I am having problem in appending the file after changes in local directory.
When i modify the above script:
open WorldAPP.com
put -append "F:\Manual Manifest\WorldAPP\" "/incoming/"
exit
It does not do anything and i am seeing the same file in the remote directory.
and when i do not use the -append, in the command it is giving message that same file exist and giving me option to overwrite. then i chose to append which is working.

MY questions:
1. Why PUT command is working and not synchronize remote.
2. Why the append command not working when i want to append the new file with the same name in local directory to remote directory.


thanks & Regards,
Arun A[/b]

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: PUT works not synchronize?

sahilarun wrote:

1. Why PUT command is working and not synchronize remote.
Please start here:
https://winscp.net/eng/docs/faq_synchronize

[quote]2. Why the append command not working when i want to append the new file with the same
The -append switch works for SFTP protocol only. What protocol are you using?

Reply with quote

Advertisement

You can post new topics in this forum