Topic "PUT works not synchronize?"

Author Message
sahilarun
[View user's profile]

Joined: 2013-02-06
Posts: 1
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]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
sahilarun wrote:
1. Why PUT command is working and not synchronize remote.

Please start here:
http://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?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License