Can anyone verify whether or not the middle exclamation point in "!?pass!word?!" would be read as an exclamation point, or would winscp expand it into a file name unless it was escaped, or something else? Should I surround the search phrase by single quotes instead of double?
The exclamation mark terminates the "prompt" pattern, so in
!?pass!is replaced by the user input,
word?is used literally and
!is replaced by the name of selected file. Quotes have no effect on the custom commands.
Also, can anyone clarify if !& expands to just selected files, or will it expand to a selected directory, too?
See Apply to directories option: