title: .BAT File to Clear Cache from Local Temp, JRE, Flash, etc
body: <p>For some reason I cannot get this to work.  I previously tried this with various iterations including one where I put '@echo off' above each command.</p>
  
  <p>This is running on Windows 7 Enterprise x64.  </p>
  
  <p>Apologies if a similar topic exists, but I was unable to find one.  The fix is probably something simple I"m over-looking.  Thanks in advance!</p>
  
  <pre><code>cd /D c:\users
  for /D %%a in (*.*) do DEL /F /S /Q "%%a\AppData\Local\Temp\*.*"
  for /D %%a in (*.*) do FOR /D %%b IN ("%%a\AppData\Local\Temp\*.*) DO RMDIR /S /Q "%%b"
  for /D %%a in (*.*) do DEL /F /S /Q "%%a\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
  for /D %%a in (*.*) do FOR /D %%b IN ("%%a\AppData\Local\Microsoft\Windows\Temprorary Internet Files\*.*) DO RMDIR /S /Q "%%b"
  for /D %%a in (*.*) do DEL /F /S /Q "%%a\AppData\LocalLow\Sun\Java\Deployment\cache\*.*"
  for /D %%a in (*.*) do FOR /D %%b IN ("%%a\AppData\LocalLow\Sun\Java\Deployment\cache\*.*) DO RMDIR /S /Q "%%b"
  for /D %%a in (*.*) do DEL /F /S /Q "%%a\AppData\Roaming\Adobe\Flash Player\*.*"
  for /D %%a in (*.*) do FOR /D %%b IN ("%%a\AppData\Roaming\Adobe\Flash Player\*.*) DO RMDIR /S /Q "%%B"
  for /D %%a in (*.*) do DEL /F /S /Q "%%a\AppData\Roaming\Macromedia\Flash Player\*.*"
  for /D %%a in (*.*) do FOR /D %%b IN ("%%a\AppData\Roaming\Macromedia\Flash Player\*.*) DO RMDIR /S /Q "%%B"
  </code></pre>