T
thinktwice
set variable=oldvalue
for ... in (....) do (
set variable=newvalue
command1
command2
....
commandn)
but if command1-n depend on the value of variablen, it doesn't work.
cause when it runs to commandn, it still use the oldvalue. how to
write this for loop ?
for ... in (....) do (
set variable=newvalue
command1
command2
....
commandn)
but if command1-n depend on the value of variablen, it doesn't work.
cause when it runs to commandn, it still use the oldvalue. how to
write this for loop ?