title: Redirecting command input using <
body: <p>Input redirection is working for .exe files or internal windows commands.</p>
  
  <pre><code>    app.exe &lt; ListOfNames.txt
      sort &lt; input.txt
  </code></pre>
  
  <p>However it isn't working when I try to redirect it into a batch script.</p>
  
  <p>test.bat :-</p>
  
  <pre><code> @echo off
   echo %1 %2
  </code></pre>
  
  <p>Running it using :-</p>
  
  <pre><code>test.bat&lt;input.txt
  </code></pre>
  
  <p>where input.txt has two strings.</p>
  
  <p>However, it is working fine for redirecting output even in case of batch scripts.</p>
  
  <p>Is this the expected behavior or I am making some syntax mistake? Is there any other way to read arguments from a file instead of manually parsing it?  </p>