title: How to pass parameters to Windows XP batch file from a text file?
body: <p>I want to find where is a certain java class from from hundreds jar files. I want to use batch file to do it:</p>
  
  <p>First i get a list of all jar files:</p>
  
  <pre><code>dir /s *.jar &gt; jarfiles.txt
  </code></pre>
  
  <p>Then create a bacth file findclass.bat:</p>
  
  <pre><code>jar tf %1
  </code></pre>
  
  <p>finally i run this batch like this:</p>
  
  <pre><code>findclass &lt; jarfiles.txt
  </code></pre>
  
  <p>But this does not work.</p>
  
  <p>What's wrong and what should I do?</p>
  
  <p>Or any other better way to locate  a class than using batch?</p>