for loop
|
|
update variables in for loop, put setlocal enabledelayedexpansion
in the start of the file, and use !var!
to reference a variable.
echo xxx>>file
can be used to append text to a file, but there should be echo xxx>file
to create the file.