<p>I need to echo a string containing angle brackets (&lt; and >) to a file on a Windows machine.  Basically what I want to do is the following:<br>
<code>echo some string &lt; with angle &gt; brackets &gt;&gt;myfile.txt</code></p>

<p>This doesn't work since the command interpreter gets confused with the angle brackets.  I could quote the whole string like this:<br>
<code>echo "some string &lt; with angle &gt; brackets" &gt;&gt;myfile.txt</code></p>

<p>But then I have double quotes in my file that I don't want.  </p>

<p>Escaping the brackets ala unix doesn't work either:<br>
<code>echo some string \&lt; with angle \&gt; brackets &gt;&gt;myfile.txt</code></p>

<p>Ideas?</p>

The Windows escape character is ^, for some reason.
```
```
echo some string ^< with angle ^> brackets >>myfile.txt
```
```