i have a txt file with variable for example
source.list
Code: Select all
%Fname%.%Lname%@domain.com
%Fname%%Lname%@domain.com
i have a batch script where the variable are set (i can echo them to the screen)
now i want to read the lines from source.list and write them to destenation.list
Code: Select all
for /f "tokens=*" %%b in (c:\temp\source.list) do echo %%b>>c:\temp\destenation.list
The expected result would be
Code: Select all
john.do@domain.com
johndo@domain.com
but the result i got is
Code: Select all
%Fname%.%Lname%@domain.com
%Fname%%Lname%@domain.com
can someone explain what i do wrong?