Append a blank line to a text file in command line

iHeartStL314

Honorable
Feb 11, 2014
1
0
10,510
I writing a batch file where I need to append a blank line to a text file named results.txt. The output to the file should look like this:

Starting log at [time]

IP Addresses
==========

This is what I've tried to achieve this result so far:

echo Starting log at %TIME%>>results.txt
echo.>>results.txt
echo IP Addressess>>results.txt
echo ===========>>results.txt

Everything except the "echo." is working. I know that in a batch file, if you type echo followed by a period that it will return a blank line in command line. So how do I get it to enter a blank line in a text file?
 
edit: i guess there was a easy way
just use
@echo:

http://stackoverflow.com/questions/132799/how-can-you-echo-a-newline-in-batch-files

--------------------------
I would try something like
making a small file with only the special control characters in it <CR><LF> <EOF>
like this
copy con foo.txt <-- hit enter
<----- hit return
< hit control +z to end your file creation

in your batch file you would
copy /b results.txt+foo.txt <--- this should append the file foo.txt in binary mode to the file results.txt

There might be ways to use the echo command to echo binary control characters but I am not sure of the syntax