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: Synchronize file to local failed using winscp514

Chris Chen wrote:

I'd want to ask you what the Existing only mean? How could I unset it in Win7? Actually this problem seems not happen in my another Win7 NB, but bothering me in this mentioned machine. Please help, thank you.

It's an option on this dialog:
https://winscp.net/eng/docs/ui_synchronize

You have probably run synchronization in GUI in the past, enabled the option and ticked Use same options next time. Disable it the same way.

See also:
https://winscp.net/eng/docs/scripting#configuration
Chris Chen

Re: Synchronize file to local failed using winscp514

Hello Admin,

Thanks for your reply.
I'd want to ask you what the Existing only mean? How could I unset it in Win7? Actually this problem seems not happen in my another Win7 NB, but bothering me in this mentioned machine. Please help, thank you.

Chris

martin wrote:

The "params = 4102" means (among other) that you have Existing only option set. This can be configured in GUI only, unset it there.

You might want to consider also to run the script in environment isolated from the GUI.
martin

Re: Synchronize file to local failed using winscp514

The "params = 4102" means (among other) that you have Existing only option set. This can be configured in GUI only, unset it there.

You might want to consider also to run the script in environment isolated from the GUI.
Chris Chen

Synchronize file to local failed using winscp514

Dear Sir,

I tried to synchronize folder from remote to local below, but the synchronizing always perform with no change. The Synchronizing message is shown followed by "params = 4102" in the end of log, do you know what that mean? And what reason towards to the problem? Thank you.
Pls. see the script:
===>
option batch on
option confirm off
open sftp://ID:PWD@IP
option transfer binary
synchronize local d:\QSG /QSG -mirror
exit

The log file:
'd:\QSG' and remote directory '/QSG', mode = 1, params = 4102
. 2013-04-21 20:24:35.621 Local file 'd:\QSG\.' [2013-04-19T14:24:39.410Z] [0] excluded from synchronization
. 2013-04-21 20:24:35.621 Local file 'd:\QSG\..' [2013-04-19T14:24:39.410Z] [0] excluded from synchronization
. 2013-04-21 20:24:35.622 Listing directory "//QSG".
> 2013-04-21 20:24:35.622 Type: SSH_FXP_OPENDIR, Size: 39, Number: 267
< 2013-04-21 20:24:35.932 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2013-04-21 20:24:35.932 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2013-04-21 20:24:36.238 Type: SSH_FXP_NAME, Size: 365, Number: 524
> 2013-04-21 20:24:36.239 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2013-04-21 20:24:36.541 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2013-04-21 20:24:36.541 Status code: 1
> 2013-04-21 20:24:36.541 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
. 2013-04-21 20:24:36.545 Remote file '/QSG/720-00020.zip' [2013-04-19T02:41:22.000Z] [44516011] is new
< 2013-04-21 20:24:36.545 Script: Synchronizing...
. 2013-04-21 20:24:36.546 Synchronizing local directory 'd:\QSG\' with remote directory '/QSG/', params = 4102
> 2013-04-21 20:24:36.546 Script: exit
. 2013-04-21 20:24:36.547 Script: Exit code: 0
. 2013-04-21 20:24:36.547 Closing connection.
. 2013-04-21 20:24:36.547 Sending special code: 12
. 2013-04-21 20:24:36.547 Sent EOF message

Thank you.