title: How to delete all files/folders from a folder 'A' which are not present in the folder 'B', using Windows Batch Scripting?
body: <p>How to delete all files/folders from a folder 'A' which are not present in the folder 'B', using Windows Batch Scripting?</p>
  
  <p>For example, Folder A has following contents:<br/>
  Dir1 -> File1<br/>
  Dir2 (no files)<br/>
  Dir3 -> File2<br/>
  Dir4 (no files)<br/>
  File3<br/>
  File4<br/>
  Dir5 -> File5<br/>
  <br/>
  Folder B has following contents:<br/>
  Dir3 -> File2<br/>
  Dir4 (no files)<br/>
  File3<br/>
  File5<br/>
  <br/>
  On running the script, following will be deleted from folder A:<br/>
  Dir1, along with File1<br/>
  Dir2<br/>
  File4<br/>
  Dir5, along with File5</p>