Post a reply

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: 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?
sahilarun

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]