Search found 1 match
- 12 Apr 2020 21:39
- Forum: DOS Batch Forum
- Topic: Arithmetic Operation
- Replies: 1
- Views: 3197
Arithmetic Operation
Type1: @echo off set CURRMonth=09 set /a CURRMonth+=1 echo %CURRMonth% > Output.txt exit Output is: 1 Type2: @echo off set CURRMonth=9 set /a CURRMonth+=1 echo %CURRMonth% > Output.txt exit Output is: 10 What I am trying to solve is, no matter how many number of '0' assigned infront of the value the...