FindStrreplacing the errorlevel so I lose the ability to detect a failed upload or other issue.
Is there anyway to retain the WinSCP transfer errorlevel result and keep the
findstrpipe? I wasn't able to find a way to suppress
findstrfrom modifying the errorlevel.
COMMAND IN BATCH FILE
"C:\Applications\WinSCP\winscp.com" /command "option batch on" "option confirm off" " open SomeFTPSite -hostkey="*"" "lcd E:\WorkingFolder\Temp\" "put ""ABMC_*.txt"" ""/ftpfolder/fakefolder/""" "exit"| findstr /v "batch confirm failonnomatch In open Searching Connecting Authenticat Using Starting Session""
DATA SENT TO LOGFILE
Active session:  SomeFTPSite E:\WorkingFolder\Temp Using configured transfer settings different from factory defaults. ABMC_xl201091ma | 0 B | 0.0 KB/s | binary | 0% Cannot create remote file '/ftpfolder/fakefolder/ABMC_xl201091ma.txt'. No such file or directory. Error code: 2 Error message from server: No such file (A)bort, (R)etry, (S)kip, Ski(p) all: Abort