You are the best!!, your code works perfectly.
thank you very much
regards
Miguel
Search found 3 matches
- 26 Sep 2020 10:56
- Forum: DOS Batch Forum
- Topic: batch file inserting new lines before a string in text file
- Replies: 7
- Views: 11698
- 25 Sep 2020 16:24
- Forum: DOS Batch Forum
- Topic: batch file inserting new lines before a string in text file
- Replies: 7
- Views: 11698
Re: batch file inserting new lines before a string in text file
Hi Squashman,
i understand that you said.
But now the code works only if the founded word is exactly the same at all the txt line evaluated .
any tips to solve that?
thanks in advance
i understand that you said.
But now the code works only if the founded word is exactly the same at all the txt line evaluated .
any tips to solve that?
thanks in advance
- 24 Sep 2020 11:25
- Forum: DOS Batch Forum
- Topic: batch file inserting new lines before a string in text file
- Replies: 7
- Views: 11698
Re: batch file inserting new lines before a string in text file
Foxdrive, hi. I am using the same code, but in my case ti need to add some lines after the founded string (word) file1.txt, looks like: ;word in place house ;word and tree 123 45 and the final result (file2.txt) after execute the .bat , must look like: ;word in place NEW LINE 1 NEW LINE 2 house ;wor...