[Batch] Subroutine call from inside a for loop - Microsoft | DSLReports Forums
I don't thing the for command works that way... you should have a single command after the FOR ... IN DO You actually jump out of the for loop, and then jump back into it. That's why you lose the loop counter. Perhaps you could make a separate batch file ...