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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
.
Posts: 1
Joined: 31 Jul 2009 10:49

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

#1 Post by . » 31 Jul 2009 10:55

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.

rfpd
Posts: 78
Joined: 06 Jul 2009 16:19
Location: Lisbon, Portugal
Contact:

f

#2 Post by rfpd » 31 Jul 2009 12:08

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)

Post Reply