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:[email protected] -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'
open scp://root:[email protected] -hostkey=*
call /root/myRemoteScript.sh %1% %2%
close
exit
/root/myRemoteScript.sh %1% %2% returns 1, WinSCP.com returns 0. I grabbed the return code of WinSCP.com with %ERRORLEVEL%