View Full Version : Batch File To Read And Modify Text File

02-05-2012, 07:33 PM
Okay, so basically, I have a whole list of links in a plain text Notepad file, each link on a seperate line. All I am wanting to do is to add a bit of text before each link, specifically: and a couple of spaces.

So this...

somelink.com becomes this... somelink.com By now you've probably already guessed what I'm trying to do here and what it's for. http://b.tsgstatic.com/smilies/smile.gif

So I am wanting some batch file code, executable in a .bat file, which basically reads a Notepad text file and then adds " " at the beginning of each line with text on it. I am guessing this is probably a very simple piece of code for someone with some knowledge of MS DOS and batch file code, but that most certainly isn't me, and the only batch files I have ever written have been with help like now.

Thanks for any and all help in advance with this, much appreciated. http://b.tsgstatic.com/smilies/smile.gif