title: Batch file to delete Firefox cache for user profiles on terminal server
body: <p>I would like to run a batch file that deletes the firefox cache folder for all user profiles on a terminal server. Much like ICSweep deletes temp internet files for all users.</p>
  
  <pre><code>Location: C:\users\ *username*\appdata\local\mozilla\firefox\profiles\ *random*.default\cache
  </code></pre>
  
  <p>The issues are the different username folders, and the name of the subfolder under firefox\profiles contains "<em>random characters</em>.default" and is different for all users.</p>
  
  <p>Can this be done with a batch file? Or do I need something like a vb script ?</p>
  
  <p>If this could be done, I would also do this for the Google Chrome cache</p>
  
  <pre><code>C:\users\ *username*\appdata\local\google\chrome\user data\default\cache
  </code></pre>