Page 1 of 1

The character '^' at the end of line, escape what?

Posted: 31 Jul 2009 10:55
by .

Code: Select all

@echo off 
echo a^
b
pause


The result is 'ab'.

I know there are two characters '<carriage return><line feed>' at the end of line.

My question is '^' escaped '<carriage return>' or both '<carriage return><line feed>'? and why displayed 'ab'? Thanks.

f

Posted: 31 Jul 2009 12:08
by rfpd
it is a character not supportable by batch and batch canĀ“t read it so they use it for this case sorrty my english! 8)