I need to echo the content of a text file line by line.
The content of the text file also contains some variables, therefore, it is expected that the echo command will display the value for those variables. Please find the modified code list below:
-
reader.bat
:@echo off set key = value echo check Key:% for / F "token = *" in %% A (test.template) Allo %%
-
test key Expected data:% key%
Expected output is:
Check key: Expected data for value key: Values
The actual output is:
Check key: Expected data for value key: % Key%
Call the
... for / f "tokens = *" %% a in (test.template) echo% %% A
You need to evaluate the data, not the zodiac regurgitated.
Comments
Post a Comment