title: How can I add exlude list items to windows batch codes
body: <pre><code>set exludelist= foldername1 foldername2 foldername3
  pushd &quot;%workdir%&quot;
  for /d %%f in (*) do (
     will do somestuff here...
  )
  popd
  </code></pre>
  <p>So I how can I check foldername in for loop for above EXCLUDE list? If current folder name is in exludelist, it should pass to next one. With an nested if statement? Or something else?</p>