Saved Sessions using in Batchfile

Advertisement

Svevo
Joined:
Posts:
1
Location:
Stuttgart

Saved Sessions using in Batchfile

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. :D

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. :)

Hope for some good answers, thank you.


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


and that's it.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum