Hello dear WinSCP Team
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?
Command-line:
"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"
Using Batch-Command-Line, WinSCP 5.1.1 Windows OS: Various (same problem)
Kind regards
Niko Balomatis