Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

How to append the start of every line in a file - Batch Code Bank


How to append the start of every line in a file
I had been presented the problem of adding a line of text to the beginning of every line in a text document so it could be cracked.
                for /F "delims=" %%j in (ORIGINALFILE.txt) do echo.TXTTOADD%%j >> NEWFILE.txt

            
Comments
ellipsis's avatar
ellipsis 13 years ago

You need to remove the extraneous % before both variables in order for this to work.