Discussion Locked

DOS integers

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm trying to increment an environment variable each time a batch file is looped through. I do not know how to access integers.
ie. count=%count%+1
gives count as the string "count 1".

How do I increment an int value?

Cheers.

3 replies

by yuval

Try to install 4dos or other shell that is smarter then DOS's native shell.
There is no other way.

This discussion is closed to new replies.