How do you increment with Windows Batch?
set list=A B C D
set /a "port=1010"
for %%a in (%list%) do (
echo %%a
call :increaseby1
echo %port%
)
:increaseby1
set /a "port+=1"
My main goal here is to iterate over all list and call another batch file like this:
for each list
dev_appserver.cmd -p [PORT+1] "A"
So this other batch would be called four times because the list is A B C and D.