title: How do I create a bat file to process different file names within a directory?
body: <p>How do I create a bat file to process different files within a directory? The file names are incrementing as below and the command that I need in the bat file should be something like <strong>java -jar Test.jar (the incrementing file names)</strong> one after the other. I have create one .bat file which looks like this -</p>
  <pre><code>java -jar Test.jar TESTDOC1.xml 
  java -jar Test.jar TESTDOC2.xml
  java -jar Test.jar TESTDOC3.xml
  
  pause
  </code></pre>
  <p>But there is a possibility that the count might increase to a huge number.</p>
  <p><strong>File Names:</strong></p>
  <pre><code>TESTDOC1.xml TESTDOC2.xml TESTDOC3.xml
  </code></pre>
  <p>how do I do it?</p>