When I redirect commands to save them in a text file, CR LF (Enter) is appended at the end of the line. I would like to save it in such a way that the result is only plain text. Is it possible without it?
@echo off
echo hello>> hello.txt
cd>>added_lines.txt
>output.txt (
echo one
)
In all three cases the content will look like this: hello[CR][LF]
, C:UsersuserDesktopdirectory[CR][LF]
, one[CR][LF]
.
How to save it so that there is no enter?