What is the easiest way to reset ERRORLEVEL to zero?
if you use exit /b 0
you can return an errorlevel 0
from within a child batch script without also exiting the parent.
Seems to do the trick:
ver > nul
Not everything works, and it is not clear why. For example, the following do not:
echo. > nul
cls > nul