I removed the ENDLOCAL alias, and now have only;[email protected]
%_batch eq 0 (*setlocal & set localcount=%@inc[0%localcount%] & echo %localcount)
I only wanted the alias to work from the command line, not from a .BTM file, thus the @if %_batch eq 0.
So far, so good. Thanks again.