I want to create something like a table in batch. I have 2 files for example.
In first file named names.txt
is typed:
John,
Emily,
And in second file named numbers.txt
is typed:
78%,
89%,
Now I writed this, but I'm sure that is wrong:
@ECHO OFF
SETLOCAL EnableDelayedExpansion
FOR /F "TOKENS=1 DELIMS=," %%A IN (names.txt,numbers.txt) DO (
ECHO. %%A have %%B.
PAUSE>NUL
I want to see this in console:
John have 78%.
Emily have 89%.
Is this possible? And if it is, how can I do that?
P.S.: I'm sorry for my bad english!