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