Topic "Include password in script file -Noobie-"

Author Message
Socko71
[View user's profile]
Donor
Joined: 2013-03-22
Posts: 19
Location: Indiana
I have a seeion defined but I don't save the password.
I have a test script file called test1.txt in it is:

open Mysession1
put M:\FTPtest\testftp.txt
exit

When I do: C:\Program Files\WinSCP>winscp.com /command /script="m:\FTPtest\test1.txt"
it will prompt for my password. Is there a way to include the password in the script file?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
Either save it in the stored session Mysession1 or specify the session completely (including the password) in the script:
http://winscp.net/eng/docs/session_url
Socko71
[View user's profile]
Donor
Joined: 2013-03-22
Posts: 19
Location: Indiana
Thanks it worked...I also have to use the option '-explicitssl' I found out.
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