Re: Encrypt and send file using *.scp file or command line
I assume that by
If that's correct, use
https://winscp.net/eng/docs/rawsettings#encryptkeyplain
The easiest is to use your GUI settings to generate a script template:
https://winscp.net/eng/docs/ui_generateurl#script
*.scp
file you mean WinSCP script file (which have no specific extension).
If that's correct, use
EncryptKeyPlain
raw session settings:
https://winscp.net/eng/docs/rawsettings#encryptkeyplain
The easiest is to use your GUI settings to generate a script template:
https://winscp.net/eng/docs/ui_generateurl#script