title: range of numbers in BAT file
body: <p><a href="https://stackoverflow.com/questions/7377335/batch-file-regular-expression">This topic</a> was created for me, and I've got 2 questions about it:
  1. So if I want 2 unknown tokens, I need to write that?</p>
  
  <pre><code>filename??.txt
  </code></pre>
  
  <p>2. If the "or a certain range of numbers" in that topic is not cleared, I meant that I need to do such a command-</p>
  
  <pre><code>if exist filename[0-9].txt (
  bla bla
  bla bla
  )
  </code></pre>
  
  <p>The [0-9] will tell the CMD that I need a range of numbers (that I will set) after the "filename".
  But the ? is fine, I just wanna know if what I asked is possible.</p>
  
  <p>Thanks :)</p>
  
  <p><strong>Edit:</strong> I've got an issue with that-</p>
  
  <pre><code>for /l %%i in (0,1,99) do if exist at%%i* (
  set found=y
  set num3=%%i
  pause
  goto forexit
  )
  :forexit
  bla bla
  bla bla
  </code></pre>
  
  <p>Somehow, the loop is being executed over and over again, more than 99 times as it should be. Infinite loop (I see the pause part every time).
  What can cause it? Thanks.</p>
  
  <p><strong>Edit 2:</strong> Problem solved. Please leave this topic open.</p>