Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Embedded settings from .ini file

You can embed only the session settings.
dan_tee

Embedded settings from .ini file

Hi,

I followed the guide on how to embed WinSCP session settings in the executable, however, what is not clear is how much of the ini file can be embedded.

The .exe I modified now automatically loads the session I embedded (hostname/port), however, it seems to ignore other parameters I embedded into the WINSCP_SESSION resource from my baseline .ini file.

I would like to embed parameters such as server key cache so that end-users will not receive warnings when they first logon to the server. Clients will be using WinSCP 4.27 under Windows XP SP3.

Can other parameters be embedded into the EXE, and if so, would I need to use a different resource name (instead of WINSCP_SESSION)?

The resource names mentioned in the documentation are:

WINSCP_SESSION
WINSCP_KEY

However, please could you let me know if there is a specific resource name where I could embed other .ini config details such as:

[SshHostKeys]
rsa2@22:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Thanks in advance, much appreciated.