Topic "Create run time session value"

Author Message
N3w@mit

Guest


Hi I am very new to this language.
Very keen to know how can i convert the session script to parameterized.
Example:
open martin:#loius@server1.example.com
Should be converted to
open %var1%:%var2%@%var3%

Where
var1=martin
var2=loius
var3=server1.example.com
@mit
[View user's profile]

Joined: 2014-11-06
Posts: 1
Location: pUNE
Actually i am using following commands mentioned below and need to generate the session value run time.

option batch on
option confirm off
open Martin:loius@server1.example.com:22 -timeout=7000
cd \
cd \Process
option transfer binary
put -nopermissions "\\OUT\*.txt"
close
exit

In need to use parameter to provide user,password and session value.

Please revert.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/script_upload_multiple_servers
_________________
Martin Prikryl
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