This may be fixed for example in this way:
Code: Select all
set /a "bb=1%aa%-101"
penpen
Moderator: DosItHelp
Code: Select all
set /a "bb=1%aa%-101"
penpen wrote:The problem is that the 08 (and 09) are no valid numbers as a leading 0 tells the interpreter to treat this as an octal value and 08 (and 09 are no valid octal numbers)
This may be fixed for example in this way:Code: Select all
set /a "bb=1%aa%-101"
penpen