title: Windows batch file - how to loop through files in a directory?
body: <p>I have this batch:</p>
  
  <pre><code>for /f %%a IN ('dir /b *.pdf') do call convert.exe %%a
  </code></pre>
  
  <p>This gets every pdf file thats in the same folder as convert.exe. I want to be able to say where the PDF resides. What do I have to change? </p>
  
  <p>Thanks!</p>