windows - Batch file variables initialized in a for loop - Stack Overflow
I have a batch file which initializes variables via SET inside a for loop, for a set of files on disk: for %%f in (%MYTARGETDIR%\*config.xml) do ( SET TMPFILE=%%F.tmp echo In ......