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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment