title: Delete all files in folder except file in list using batch
body: <p>I have three file in a folder (temp folder) that are</p>
  
  <pre><code>1.txt
  2.exe
  3.txt
  </code></pre>
  
  <p>Now I will use to batch to write script for deleting all files in the folder except one file (3.txt). How to write it in script. I try to use </p>
  
  <pre><code>del temp /Q
  </code></pre>
  
  <p>But it will delete all file in my folder. I don't want to delete all. I only want to delete 1.txt and 2.exe. Let consider number of file is large.</p>