Differences

This shows you the differences between the selected revisions of the page.

2018-11-09 2023-01-10
dot (martin) no summary (178.34.167.22)
Line 21: Line 21:
<code> <code>
-cmd://"{ENV_PROGRAMFILES_X86}\WinSCP\WinSCP.exe" {BASE:SCM}://{USERNAME}:{PASSWORD}@{BASE:HOST}:{T-REPLACE-RX:/{BASE:PORT}/-1//}{BASE:PATH}+cmd://"{ENV_PROGRAMFILES_X86}\WinSCP\WinSCP.exe" {BASE:SCM}://{USERNAME}:{PASSWORD}@{BASE:HOST}:{T-REPLACE-RX:/{BASE:PORT}/-1//}{BASE:PATH} {T-CONV:`{T-REPLACE-RX:|{BASE:QUERY}|^\?||}`Uri-Dec`}
</code> </code>
The ''%%{T-REPLACE-RX:/{BASE:PORT}/-1//}%%'' is a workaround for KeePass resolving the ''{BASE:PORT}'' placeholder to ''-1'', when a password entry //%%URL%%// field does not specify the port explicitly and KeePass does not know the protocol (such as ''sftp'') to substitute a standard port. The ''%%{T-REPLACE-RX:/{BASE:PORT}/-1//}%%'' is a workaround for KeePass resolving the ''{BASE:PORT}'' placeholder to ''-1'', when a password entry //%%URL%%// field does not specify the port explicitly and KeePass does not know the protocol (such as ''sftp'') to substitute a standard port.
 +
 +The ''%%{T-CONV:`{T-REPLACE-RX:|{BASE:QUERY}|^\?||}`Uri-Dec`}%%'' to pass ''{BASE:QUERY}'' to WinSCP as parameters.
See KeePass documentation for [[https://keepass.info/help/base/placeholders.html|placeholders]]. See KeePass documentation for [[https://keepass.info/help/base/placeholders.html|placeholders]].

Last modified: by 178.34.167.22