|I have a dos script below where i need to add more than nine parameters (all added as parameters within a scheduler), i added SHIFTS in to add the 10th variable and now my |
loopcount comes back as
set /A LoopCount+=1
The syntax of the command is incorrect.
If i remove the SHIFTS my loopcount works OK. I assume the SHIFTS are affecting
the set /a in my loopcount. I have also tried with a different syntax of set /A
LoopCount=%LoopCount% +1 with the same results. The issue only occurs after the 9th shift is added, up until then the loopback still works. Any help greatly appeciated.
SET /A LoopCount=0
Set /A LoopCount+=1
If %LoopCount% GTR %2 (
) Else (