title: Use a "for" to include different file extensions
body: <p>This is the whole script but I'm just interested in modifying the following line:</p>
  
  <pre><code>for /R %%x in (*.jpg)
  </code></pre>
  
  <p>I want to include also *.png and *.gif</p>
  
  <pre><code>setlocal enabledelayedexpansion enableextensions
  set PATH=%PATH%;C:\"Program Files"\FileOptimizer
  Set /A "threads=8,i=0"
  :: initialize List
  For /L %%n in (1,1,%threads%) Do Set "List%%n="
  
  for /R %%x in (*.jpg) do  ( 
    Set /A "n=i %% threads + 1,i+=1"
    call set "LIST!n!=%%LIST!n!%% "%%x""
  )
  
  For /L %%n in (1,1,%threads%) Do (
      echo list: !LIST%%n!
      START FileOptimizer64.exe !LIST%%n!
      )
  </code></pre>