![Very Happy :D](./images/smilies/icon_biggrin.gif)
Batch file needed to replace one line in original.txt file with different text and make a copy
of it before replacing the line.
Example would be if I have a text file like below called original.txt and want to replace the word
orange with chapter 10.000 <----there must be a space between chapter and the number
Most important the orange word might be different so I need the batch file to
replace line 3 in this case whatever line 3 says.
raspberry
zebra
orange
black
apple
What would be the complete batch text please?
Something like ?:
@echo off
ren original.txt copy-of-original.txt
copy copy-of-original.txt original.txt <-----dunno if this line is correct
replace line 3 in original.txt with chapter 10.000 <--- this is another line I have no idea how to do
pause
Thanks!
Val