Winscp 5.12 - Passing multiple parameters to Script file

Advertisement

sundar2013
Joined:
Posts:
8

Winscp 5.12 - Passing multiple parameters to Script file

In Arguments I am passing the below values to the batch script
-script="XXXXXX" /parameter // "X:\XXX\XXXXX\XXX Backup Files 1" /parameter // "X:\XXX\XXXXX\XXX Backup Files 2"

Batch Script:

option batch off
option confirm off
option transfer binary
open sftp:XXXXXXXXXXX -hostkey= XXXXXXXXXXXXXX
cd XXXXXXXX
lcd "%1%"
get "XXX_Responses_%2%.xml"


==========================

Error log information...

2016-11-24 04:27:09.615 Using SFTP protocol.
. 2016-11-24 04:27:09.615 Doing startup conversation with host.
> 2016-11-24 04:27:09.615 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2016-11-24 04:27:09.645 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2016-11-24 04:27:09.645 SFTP version 3 negotiated.
. 2016-11-24 04:27:09.645 We believe the server has signed timestamps bug
. 2016-11-24 04:27:09.645 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2016-11-24 04:27:09.645 Getting current directory name.
. 2016-11-24 04:27:09.645 Getting real path for '.'
> 2016-11-24 04:27:09.645 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2016-11-24 04:27:09.674 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2016-11-24 04:27:09.674 Real path is '/'
. 2016-11-24 04:27:09.674 Startup conversation with host finished.
< 2016-11-24 04:27:09.674 Script: Active session: [1] chevronISN@data.isnetworld.com
> 2016-11-24 04:27:09.675 Script: exit
. 2016-11-24 04:27:09.675 Script: Exit code: 0
. 2016-11-24 04:27:09.675 Closing connection.
. 2016-11-24 04:27:09.675 Sending special code: 12
. 2016-11-24 04:27:09.675 Sent EOF message

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum