title: How do I force my batch file to hide the cmd window and say "yes"?
body: <p>Okay so I am trying to make a simple BAT file that deletes files in multiple folders. Now this is what I have so far. I would like it so it deletes all files and folders in the Temp directory but not folders in the data directory... I would also like it to say yes to the prompts. How do I do this???</p>
  
  <pre><code>@ECHO OFF
  DEL "C:\ProgramData\TVersity\Media Server\data\*.*" 
  DEL "%LOCALAPPDATA%\Temp\*.*"
  </code></pre>
  
  <p>I am planning on adding in more directories into this BAT file so please if you can respond with "how to commands"... Because I would like to know how to specify whether to delete all folders and files or just files.</p>
  
  <p>Also how to automate the "yes" to all prompts.</p>