DOS integers - TechRepublic
General discussion
January 10, 2001 at 05:19 PM
steve.doig

DOS integers

by steve.doig . Updated 25 years, 5 months ago

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.

This discussion is locked

All Comments