Get return code of "call"
Hi,
I'm using WinSCP.com and I'm trying to get the return code of commands called with
Basically, I launch the following command
With the script file which looks like
But even if
How can I do that?
Thank you!
I'm using WinSCP.com and I'm trying to get the return code of commands called with
call
Basically, I launch the following command
WinSCP.com /script=./script.txt /parameter 'foo' 'bar'
But even if
/root/myRemoteScript.sh %1% %2%
returns 1, WinSCP.com returns 0. I grabbed the return code of WinSCP.com with %ERRORLEVEL%
How can I do that?
Thank you!