title: Batch file to keep required files and delete the rest of the files
body: <p>My requirement is to keep the files of type <code>*.c</code>, <code>*.cpp</code> and delete all other files in a folder. </p>
  
  <p>Can anyone help me out in this?</p>