Topic "WinSCP.com open site"

Author Message
Shellas Sahib

Guest


I am using winSCP.com on a script to connect from Windows to iSeries. I used the GUI and created a session with all configurtaion setup and username. I dont have a choice of saving a password and want to pass it to the script.

My issue is i want to know when i use the open command with the site, is there a way to pass the password? DAont prefer to use the open ftp:// command.

see below i am doing from command prompt:
winscp.com /script=E:\Command\ftpscript.txt

ftpscript.txt
--------------
option batch continue
option confirm off
open Test1
lcd E:\Input
exit
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Shellas Sahib wrote:
I dont have a choice of saving a password and want to pass it to the script.

Did you specify the password on Login dialog, before you hit Save?
Guest




prikryl wrote:
Shellas Sahib wrote:
I dont have a choice of saving a password and want to pass it to the script.

Did you specify the password on Login dialog, before you hit Save?


Yes we specified the password and it is not saving. even if it saves, our corporate policy wont allow saving password, unless WinSCP saves in as encrypted.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Did you check the Save password on the Save session as site dialog?
http://winscp.net/eng/docs/ui_login_save

To encrypt passwords, you can use master password.
http://winscp.net/eng/docs/master_password

But that will prevent the password from being used in scripting.

Your requirements are contradictory.
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