I dont know what I am doing wrong here. But I am trying to increment "Counter"
Code is supposed to loop backwards through 1000 then every 10 pause for 30 seconds. I can't seem to get the COUNTER to work though. There are a dozen Stack Overflows about this but I still can't figure out my mistake here
set counter=0
FOR /L %%G IN (1000,-1,1) DO (
set /a "counter=%counter%+1"
start otherscript.cmd %%G
echo For %%G
echo Counter %counter%
if %counter% ==10 (
set /a counter=0
timeout 30
)
)