i've got a problem. I have a text file named 'save1.txt'. it's contents are:
i need a for loop that executes each line with a 'set' command before it.
i was originally given:
for /f "tokens=*" %a in (save1.txt) do set %a
but that didn't work. i have since tried these:
for /f %%g in ("save1.txt") do set %%g
FOR /F %%G IN ('"D:\Groups\Batch Files\RPG\save1.txt"') DO SET %%G
I'm currently using windows vista, but it will need to work on vista, xp and 7.