Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need create text file with characters like < > from command line. More precisely it should be: %1 < %2 > %3 Tried to use echo do to it, but when I type

echo %1 < %2 > %3 > output.txt

or

echo '%1 < %2 > %3' > aab.txt

error will occur. When I type

echo "%1 < %2 > %3" > output.txt

output.txt content will be "%1 < %2 > %3" (with double quotes inside).

I need content similar to last one but without double quotes inside file. Any ideas?

share|improve this question
up vote 6 down vote accepted

Use ^ as escape character:

echo %1 ^< %2 ^> %3 > output.txt
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .