batch loop variable
Posted: 11 Dec 2010 10:52
I'v gotta change the variable via input for x amount of times.
@echo off
for %%counter in (1,2,3,4) do (
set input =
set /p input=Type input:%=%
echo Your input was: %input%
)
For some reason the variable doesn't change.
How can I change the variable contents
@echo off
for %%counter in (1,2,3,4) do (
set input =
set /p input=Type input:%=%
echo Your input was: %input%
)
For some reason the variable doesn't change.
How can I change the variable contents