I wrote a little batch file (OS=XP) that just counts from 1-4, in increments of +1, each time the batch file is run. It counts fine, except it doesn't stop at 4, but keeps counting indefinitely.
I think the problem might be in the second IF statement. Either:
(a) the condition is not...