title: Delete all folders except.... (*.BAT)
body: <p>I would like to delete all folders except MYFOLDER found in a parent directory but I cant get it done?</p>
  
  <pre><code>for %%i in ("C:\Parent") do if not "%%i"=="MYFOLDER" del /f /q "%%i
  </code></pre>
  
  <p>could somebody please check the code?</p>
  
  <p>(I'm using *.bat)</p>