Suggestion regarding storage of sessions for batch mode

Advertisement

Guest
Guest

Suggestion regarding storage of sessions for batch mode

Hi,
what do you think about storing sessions in separate config files instead of WinSCP.ini? Later in batch mode you could specify the full path to the config file in open statement. You could place the session configuration file for different sessions at different locations and secure that locations using Windows permissions. What do you think?

If the above is currently possible, it's my fault that I don't read the docs properly

Thanks and regards,
Tilo

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Suggestion regarding storage of sessions for batch mode

Guest wrote:

You could place the session configuration file for different sessions at different locations and secure that locations using Windows permissions.
What would you use it for?

Reply with quote

Guest
Guest

Re: Suggestion regarding storage of sessions for batch mode

You can run the WinSCP.com batch file transfer under different users in Windows. For each user you specify such a configuration file that is only accessible for that user. So you make sure, that other users don't get access to that file to read the session details (username, password etc.).
It's a little bit like you do it on UNIX using e.g. ncftp or lftp.

Reply with quote

Guest
Guest

Re: Suggestion regarding storage of sessions for batch mode

@Martin: Have you read my reply? Could this something useful in your opinion too?

Regards,
Tilo

Reply with quote

martin
Site Admin
martin avatar

Re: Suggestion regarding storage of sessions for batch mode

How would WinSCP know where to look for different configuration files?

Reply with quote

Advertisement

g24ftp
Joined:
Posts:
17

Re: Suggestion regarding storage of sessions for batch mode

Hi Martin,
the path to the configuration file could be specified in the open-statement. Or as a parameter to WinSCP.com. This feature could only be relevant in batch mode.

Regards,
Tilo

Reply with quote

g24ftp
Joined:
Posts:
17

Re: Suggestion regarding storage of sessions for batch mode

To all: Maybe a solution could be to use this feature:
https://winscp.net/eng/docs/faq_script_ini
As I understand it, you could specify a WinSCP.ini containing a specific session configuration and you can specify the path to that file when using WinSCP.com. I think this could be the solution, but I haven't verified it yet.

Regards,
Tilo

Reply with quote

Advertisement

You can post new topics in this forum