We are using WinSCP in batch mode and working with return codes to determine, if a file transfer was valid.
We got some complaints that some of the files where never been transferred, but we never got an errormessage returned. We found afterwards the error, when we checked the
Log-File, but we can't check every Log-File manually.
Our problem can be replicated when we tried to connect to a host, which is required a certificate and a popup window appears. WinSCP closes (cancel) the Window after some time
and ends without a transfer (which is totally correct). Unfotunately, we can't determine, without return codes, if the transfer was successful or not.
Is there a possibility to activate return codes in WinSCP? So we could check if the Host, path, file, certificate, etc. are missing or if everything went well?
"C:\Program Files\WinSCP\WinSCP.exe" /console=511 /consoleinstance=_3560_845 "XXX@XXX.XXX.XX" "/log=c:\XX.Log.txt" "/command" "option batch abort" "option confirm off" "ls /Test_Test" "exit"