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
I have used the
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?
Please advise.
Thanks,
Dave
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 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?
Please advise.
Thanks,
Dave