Hi Vince,
The code is the same as posted before with two changes, both the suggested ones.
1. Located under the END label:
:END
delay 1
if %_IFTP==1 iftp /c
goto :BEGIN
endlocal
quit
...
and,
2. The suggestion you just made at the beginning of file:
on error (echo Error at line %_batchline &...