Post a reply

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: User defined session properties for custom commands

I have added this request to the tracker:
https://winscp.net/tracker/1975
You can vote for it there.
alerosmile

Re: User defined session properties for custom commands

Using the host name is no option for me and using the session name is an option for simple cases only.
This might be a valuable extension to the custom command and would make them even more versatile than they already are.
martin

Re: User defined session properties for custom commands

No there's no such option. Cannot you use the hostname or session name in your script to decide on the parameters?
alerosmile

User defined session properties for custom commands

There are several patterns available (!U, !P) which can be used for custom commands. Is there any way to pass values of arbitrary properties defined in a session to the command?
I have a command which must behave differently depending on the session.

One way to implement this would be to add a properties section to the 'Advanced Site Settings' dialog. These properties can then be referenced in a custom command by a pattern like !'<property name>'.