title: How to Delete all folders inside a folder except one in windows batch script?
body: <p>I tried to delete a files and folder inside a folder except one ,but so far I didn't get a perfect answer for it?</p>
  
  <p>Can any one help on this above?</p>
  
  <p>My folder structure seems like this:</p>
  
  <p>I have ABC Folder under E:\ Inside that folder I have 4 files named A.txt,B.txt,C.txt &amp; D.txt and I have 3 Folders in that they are AB , BC &amp; CD ...I want to remove all files and folders in ABC folder except CD folder inside ABC folder..</p>
  
  <p>Can any one please help on the above?</p>