title: How to loop through files matching wildcard in batch file
body: <p>I have a set of base filenames, for each name 'f' there are exactly two files, 'f.in' and 'f.out'.  I want to write a batch file (in Windows XP) which goes through all the filenames, for each one it should:</p>
  
  <ul>
  <li>Display the base name 'f'</li>
  <li>Perform an action on 'f.in'</li>
  <li>Perform another action on 'f.out'</li>
  </ul>
  
  <p>I don't have any way to list the set of base filenames, other than to search for *.in (or *.out) for example.</p>