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>



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2012
[ home ]