title: How to write "<" in a text file using batch file and doesn't interpret it as command
body: <p>I'm trying to create and write inside a text file using batch file. The line that I'm trying to write is as below but I'm having a problem that batch is interpreting I'm trying to write inside a file here whereas it is actually the line that I want to write inside the file.</p>
  
  <p>Can someone please help on how to make sure batch command just ignore it and just write inside the text file as it is.</p>
  
  <p>The line is:</p>
  
  <p>echo while () >>test.txt</p>
  
  <p>So, I want to print these "&lt;" and ">" inside the bracket as well in the txt file and don't want batch file interpret it  as a command. </p>
  
  <p>You guys help is really appreciate here!</p>
  
  <p>Thanks
  Hijan</p>