title: How can I get a list of folders/subfolders that DOES NOT contain a specific type of file?
body: <p>For example, I wanted to print a list of folders which contain an <code>.html</code> file. Correct me if I am wrong, but this worked for me:</p>
  <pre><code>dir /S *.html &gt; C:\Users\PC\Desktop\with-html.txt
  </code></pre>
  <p>Now I would like to find the folders which do not contain .html files.</p>
  <p>How do I go about that?</p>
  <p><strong>EDIT:</strong></p>
  <p>The folders are structured in a way that only the child folders (last subfolder) have any kind of files. I would like to get a list of directories to those subfolders. So the above command line is giving me:</p>
  <pre><code>C:\...\ml\regression\lasso-regression
  C:\...\ml\regression\linear-regression
  </code></pre>
  <p>There is not output just <code>C:\...\ml</code> or <code>C:\...\ml\regression</code>.</p>
  <p>The folder structure looks like this:</p>
  <ul>
  <li>C:\...\ml
  <ul>
  <li>classification</li>
  <li>regression
  <ul>
  <li>lasso-regression</li>
  <li>linear-regression</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  <p>There are about 10 folders in folder <code>ml</code> and no files. There are again about 10 folders in second folder level where <code>C:\...\ml\regression\linear-regression</code> contains an HTML file while <code>C:\...\ml\regression\lasso-regression</code> does not contain a file with file extension <code>.html</code>. Only the folders in last level of the folders tree have files at all.</p>
  <p>I'd be grateful getting just the list of the last folders in folders tree not containing a file with file extension <code>.html</code>.</p>
  <p>I basically output the above command line into a <code>.csv</code> file, filtered it with MS Excel, and have now a list of folders with <code>.html</code> file(s). I'm basically working with R-markdown files, and it'll be a status report, the folders list with .html files is what I have completed already. So in need now only the opposite folders list.</p>