Does the script stop when it encounters and error for file not found?
Depends on
option batch
command:
https://winscp.net/eng/docs/scriptcommand_option#batch
Does the script stop when it encounters and error for file not found?
option batch
command:
get
command in each iteration), and execute WinSCP only once at the end.
for /f "usebackq tokens=*" %%x in (ptest.csv) do (
echo Starting WinSCP
winscp.com /log=C:\Logs\winscp.log /ini=nul /command ^
"open sftp://xxx:xxx@ftp.somewhere.com/ -hostkey=""ecdsa-sha2-nistp256 256 blah blah=""" ^
"lcd ""C:\Images""" ^
"cd ""/BBIMAGES/LINKS_SPRIDENID""" ^
"get %%x.JPG" ^
"exit"
echo WinSCP finished
)