I have a hundred text files to which I would like to insert the numbers 1 to 100 at the end of each. the script below will add “some text here” to every file in a directory where the bat script is saved and executed.
FOR %%i IN (*.txt) DO echo some text here>> %%i
Now, I want numbers 1-100 inserted into the said 100 text files instead of “some text here”.
What is the correct script in order to achieve this?
if you look at
for /?