Saturday, December 8, 2012

How to echo a greater than or less than sign in a DOS batch file

To echo a greater than or less than sign in a DOS batch file, use a carat, as in ^> or ^<.  If you do not do so, the greater than or less than sign will be interpreted as redirection.  To echo a carat, use two carats, as in ^^.  Recall a single carat is used to continue a DOS command on another line.  Also use the carat to escape the piping symbol.


1 comment:

  1. Thank you for sharing your thoughts and for inspiring us. Keep it up and continue on what your doing. Visit my site too.

    triciajoy.com

    www.triciajoy.com

    ReplyDelete