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