Wednesday, February 06, 2008

Customize a windows cleaner

Open the notepad and input the following lines. Then save it with the file name "trash-cleaning.bat". Then you can double click this file to execute the cleaning process.

@echo off echo is cleaning the trash files, please wait......    
del /f /s /q %systemdrive%\*.tmp    
del /f /s /q %systemdrive%\*._mp    
del /f /s /q %systemdrive%\*.log    
del /f /s /q %systemdrive%\*.gid    
del /f /s /q %systemdrive%\*.chk    
del /f /s /q %systemdrive%\*.old    
del /f /s /q %systemdrive%\recycled\*.*    
del /f /s /q %windir%\*.bak    
del /f /s /q %windir%\prefetch\*.*    
del /f /s /q %windir%\temp\*.*    
del /f /q %userprofile%\cookies\*.*    
del /f /q %userprofile%\recent\*.*    
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"    
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"    
del /f /s /q "%userprofile%\recent\*.*"     
echo Trash cleaning is done!    
echo. & pause

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home