I am trying to create a .bat file that will replace a set of variables (in order) with the entire line of text.
I used to pull an array of three lines of text from the file "variables.txt":
@echo off setlocal ENABLEDELAYEDEXPANSION set vidx=0 for /F "tokens=*" %%A in (variables.txt) do ( SET /A vidx=!vidx! + 1 set var!vidx!=%%A ) set var
I want to scan the file "export.txt", and the first time I access the word "client" I want to replace all this line with the first variable.
The second time, when he clicks on the word "client", I want him to replace the entire line of the second variable (and so on).
It's really hard for me, and I'm not sure about the plural variable in the for / F sequence.
source share