将下面的代码copy到 一个普通文件中,然后让其名字为 xxx.bat,即可

 
  
  1. @echo off 
  2.  
  3. echo 正在清除系统垃圾文件,请稍等...... 
  4. del /f /s /q %systemdrive%\*.tmp 
  5. del /f /s /q %systemdrive%\*._mp 
  6. del /f /s /q %systemdrive%\*.log 
  7. del /f /s /q %systemdrive%\*.gid  
  8. del /f /s /q %systemdrive%\*.chk 
  9. del /f /s /q %systemdrive%\*.old 
  10. del /f /s /q %systemdrive%\recycled\*.* 
  11. del /f /s /q %windir%\*.bak 
  12. del /f /s /q %windir%\prefetch\*.* 
  13. rd /s /q %windir%\temp & md %windir%\temp  
  14. del /f /q %userprofile%\cookies\*.* 
  15. del /f /q %userprofile%\recent\*.* 
  16. del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" 
  17. del /f /s /q "%userprofile%\Local Settings\Temp\*.*"  
  18. del /f /s /q "%userprofile%\recent\*.*" 
  19. echo 清除系统LJ完成! 
  20. echo. & pause