title: In batch scripts how to "skip empty arguments"?
body: <p><em>Example script call.bat</em></p>
  
  <pre><code>echo %1.txt %2.txt %3.txt
  </code></pre>
  
  <p><strong>a) Now, if I call it with</strong></p>
  
  <pre><code>c:\&gt;call Huey Dewey Louie
  </code></pre>
  
  <p>it will print out </p>
  
  <pre><code>Huey.txt Dewey.txt Louie.txt
  </code></pre>
  
  <p><strong>b) If I call it with</strong> </p>
  
  <pre><code>c:\&gt;call Huey Dewey
  </code></pre>
  
  <p>it will print out</p>
  
  <pre><code>Huey.txt Dewey.txt .txt
  </code></pre>
  
  <p><strong>How do I make it skip that last part, if I haven't given %3?</strong> (of course, the number of arguments can be more than three, ... let's say 8 or nine).</p>