winscp.comcommandline with switches etc..
I have used the
if %ERRORLEVEL% neq 0 goto errorif a successful connection is used to then trigger a move of files after upload.
However, I had a situation where the SFTP client failed to connect to remote server. The logs showed an error level of 0 upon exit for failing to connect, which then triggered the move function.
Is this expected for a failed connection?