Topic "Saved Sessions using in Batchfile"

Author Message
Svevo
[View user's profile]

Joined: 2016-06-27
Posts: 1
Location: Stuttgart
Hi,

I try to automate a sftp connection with a batch script, that is no problem using the user and pwd in clear text. But I can't do that.
So my idea was to configure a sessions, and open the saved session in cli, because in the ini-file the password is "hashed".

Yes I tried the "search" and yes I need the command in cli. Very Happy

I tried winscp.com /ini="C:\scripts\config.ini"
then I have to open the connection to the site, but how can I say winscp to open the connection in the saved ini file?

I think it is very easy, but I didn't find a solution, perhaps it is to easy. Smile

Hope for some good answers, thank you.


Sorry for that: it was very very easy. Rolling Eyes
after typing winscp.com /ini="C:\scripts\config.ini"
open examplesessionname


and that's it.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Your solution is correct for your specific approach.

For alternatives to protecting the credentials, see:
https://winscp.net/eng/docs/guide_protecting_credentials_for_automation
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