Add new line in text file with Windows batch file
I have a text file which has more than 200 lines in it, and I just want to add a new line before line 4. I'm using Windows XP. Example text file before input: header 1 header 2 header 3 details 1 details 2 After output: header 1 header 2 header 3 <----- This is new line ----> details 1 details 2 I believe you are using the echo Text >> Example.txt function? If so the answer would be simply adding a "." (Dot) directly after the echo with nothing else there. Example: echo Blah echo Blah 2 echo. #New line is added echo Next Blah khaled You can use: type text1.txt >> combine.txt echo >> combine