title: Batch file out put to both console and text
body: <p>How can I save the out put of a batch file to a text file and the output should be displayed on console too.</p>
  
  <p>For Eg:</p>
  
  <pre><code>@ECHO OFF
  ECHO Hello World 
  @pause
  </code></pre>
  
  <p>It will show Hello World on console </p>
  
  <pre><code>@ECHO OFF
  ECHO Hello World &gt;text.txt
  @pause
  </code></pre>
  
  <p>It will save Hello World to text.txt</p>
  
  <p>How can I make it both happen together?</p>
  
  <p>Thanks in advance</p>