Topic "Saved Sessions using in Batchfile"

Author Message
[View user's profile]

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

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 /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 /ini="C:\scripts\config.ini"
open examplesessionname

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

For alternatives to protecting the credentials, see:

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License