|If CR and LF are text characters as you have typed them, or are represented by typeable characters otherwise, you can remove the CR and LF or whatever typeable characters in existing batch or text files (or any file Wordpad can read) by editing the file in Wordpad. |
Select File at top left, Open, set it to All documents.
Go to the *.bat or *.txt file (or any file Wordpad can read) and Open it (Wordpad won't execute *.bat files) .
Select Edit at top left - Replace - type e.g. CR, don't type anything in the Replace with box, click on the box beside Match whole word only to insert a checkmark.
Click on Find next to toggle through all instances of e.g. CR.
It will toggle back to the first instance found eventually.
- if it is in the body of the file as well as in it separately, click on Replace for each instance where you want to replace it with nothing.
- if it is NOT in the body of the file as well as in it separately, click Replace All when any instance of it is found to replace all instances with nothing.