Tag Archive: batch processor

Jul
16

Set value of the variable in “FOR” loop in Window batch script

Running for loop and setting the variable values within the for loop is different in window batch file comparing to other scripting or programming language. Following example is trying to get the total value of 1, 2, 3 and 4. set COUNT=0 for %%F in (1 2 3 4) do ( set /A COUNT=!COUNT! + …

Continue reading »

Permanent link to this article: http://lindaocta.com/?p=337