title: Batch script to delete all folders except of "Starts with"
body: <p>I have a folder with several subfolders. Structure is like:</p>
  <ul>
  <li>C:\foo</li>
  <li>C:\foo\web.foo</li>
  <li>C:\foo\web.bar</li>
  <li>C:\foo\win.foo</li>
  <li>C:\foo\win.bar</li>
  <li>C:\foo\mobile.foo</li>
  <li>C:\foo\mobile.bar</li>
  </ul>
  <p>I sometimes wish to delete the folders with its containing files with following batch script:</p>
  <pre class="lang-bat prettyprint-override"><code>rmdir C:\foo /s /q
  </code></pre>
  <p>Here it didn't matter that the whole folder C:\foo was deleted completely.</p>
  <p>But now I only want to delete only the subfolders of C:\foo with its containing files, which <strong>DO NOT start with &quot;web.&quot;</strong>.</p>
  <p>Do you have any good solution for this?</p>