increment variable in loop batch code example Example: increment variable in batch file set /a var = var + 1