I have a batch file that is supposed to echo words from each line in a .dll file. It works fine, I just don't know how to add numbers or letters to the front of the output. This might be confusing so I will show you what I'm working with.
Here is my for loop:
for /f %%b in (log.dll) do echo %%b
"log.dll" looks like this:
test
rick
sanchez
The output of the batch file looks the same:
test
rick
sanchez
This is all well and good, but how could I make the output look like this:
1 test
2 rick
3 sanchez
It doesn't have to be exactly like that, but I want it to look similar. How could I do this, and is it even possible to do this?