Topic "Winscp 5.12 - Passing multiple parameters to Script file"

Author Message
sundar2013
[View user's profile]

Joined: 2016-04-04
Posts: 8
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
sundar2013
[View user's profile]

Joined: 2016-04-04
Posts: 8
Please disregard this; I found the solution for passing multiple parameters
Advertisements

You can post new topics in this forum

Search

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