title: Batch script to list folders but exclude specific folders
body: <p>I want this script to list all folders that contains "deleted" in the folder name but not if they is in a folder called "done".</p>
  
  <p>For exampel: list the folder if it's in <code>C:\temp</code> and if it's in <code>C:\temp\random_folder_name</code> but not not if it's in <code>C:\temp\done</code></p>
  
  <pre><code>dir /s "C:\temp" | findstr "\deleted"
  </code></pre>
  
  <p>short story, exclude all folders named "done" and their content.</p>