Great, it's exactly what I was looking for!
Yes, I know, for hostkey
Thank you!
Yes, I know, for hostkey
Thank you!
ExitCode1IsError raw session setting:
open scp://root:strongPassword@1.2.3.4 -hostkey=* -rawsetting ExitCode1IsError=1
-hostkey=* is just wrong. You are possibly sending your "strong password" right to the hands of an attacker.
call
WinSCP.com /script=./script.txt /parameter 'foo' 'bar'
/root/myRemoteScript.sh %1% %2% returns 1, WinSCP.com returns 0. I grabbed the return code of WinSCP.com with %ERRORLEVEL%