No Error Code if SFTP fails to Connect in Script
Hi, I have a simple .cmd script that performs a check for presence of Files and if present calls winscp.com commandline with switches etc..
I have used the if %ERRORLEVEL% neq 0 goto error if a successful connection is used to then trigger a move of files after upload.
However, I had a situation wehere 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?
Please advise.
Thanks,
Dave
I have used the if %ERRORLEVEL% neq 0 goto error if a successful connection is used to then trigger a move of files after upload.
However, I had a situation wehere 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?
Please advise.
Thanks,
Dave