Advertisement
Guest User

Put in a notepad file and save as all files .bat

a guest
Dec 19th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. @Echo off
  2. cls
  3. cleanmgr /sageset:65535
  4. del /F /S /Q "%systemroot%\temp\*.*"
  5.  
  6.  
  7. del /F /S /Q "C:\AppData\Local\Microsoft\Windows\History\*.*"
  8. del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\*.*"
  9. del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\Content.IE5\*.*"
  10. del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Temporary Internet Files\Content.IE5\*.*"
  11. del /F /S /Q "C:\AppData\Local\Microsoft\Windows\Temporary Internet Files\Temporary Internet Files\Low\Content.IE5\*.*"
  12.  
  13. del /F /S /Q "C:\Users\%UserName%\AppData\Local\Temp\*.*"
  14. del /F /S /Q "C:\Temp\*.*"
  15. del /F /S /Q "C:\Users\%UserName%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\Content.IE5\*.*
  16. del /F /S /Q "C:\Users\%UserName%\AppData\Local\Microsoft\Windows\History\*.*
  17.  
  18.  
  19. ::Rem: No need to duplicate the following section for each registered User
  20. del /F /S /Q "%homepath%\Cookies\*.*"
  21. del /F /S /Q "%homepath%\recent\*.*"
  22. del /F /S /Q "%homepath%\Local Settings\cookies\*.*"
  23.  
  24. del /F /S /Q "%homepath%\Local Settings\History\*.*"
  25. del /F /S /Q "%homepath%\Local Settings\Temp\*.*"
  26. del /F /S /Q "%homepath%\Local Settings\Temporary Internet Files\Content.IE5\*.*"
  27.  
  28.  
  29. del /F /S /Q "C:\$Recycle.Bin.Bin\*.*"
  30.  
  31. del /F /S /Q "C:\Recycled\*.*"
  32.  
  33. cleanmgr /sagerun:65535
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement