vascobrito
Technical User
Hi there
i need to assign an numeric argument passed to the batch file, wich i have no problem doing. The problem is that i need to assign that value to another variable adding one to the value.i'l explain better.
for instance,the user writes in the prompt:
test.bat 20009
in the batch file i have
SET Guia=%1
in NT/2000 i can simply do what i want with this:
SET /A NewGuia=%Guia% + 1
NewGuia would be = 20010
in dos,95,98 this doesn't work. "SET" doesn't use "/A"
I think i have readed some where that it's not possible to do aritmetic operations in earlier versions of Dos. Is this true, if it is , how can i solve this?
Thanks for any help
i need to assign an numeric argument passed to the batch file, wich i have no problem doing. The problem is that i need to assign that value to another variable adding one to the value.i'l explain better.
for instance,the user writes in the prompt:
test.bat 20009
in the batch file i have
SET Guia=%1
in NT/2000 i can simply do what i want with this:
SET /A NewGuia=%Guia% + 1
NewGuia would be = 20010
in dos,95,98 this doesn't work. "SET" doesn't use "/A"
I think i have readed some where that it's not possible to do aritmetic operations in earlier versions of Dos. Is this true, if it is , how can i solve this?
Thanks for any help