Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

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 12 years ago

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