Share this page 

ECHO "<" or ">" in a batch fileTag(s): Misc Prog HowTo


Since < or > are special characters for the DOS command interpreter, you can't use them directly,
> echo <test>
Bad syntax

Simply prefix them with the DOS escape character "^"

> echo ^<test^>
<test>