Clean temp files and make windows boot faster


Clean temp files and make windows boot faster

Published on Sat 21 Jul 2007 04:07 ( 3 years, 1 month ago)
Windows

 

Via Cedong

pretty useful batch script.  Copy & paste it in to a file named "clean.bat", run it to delete all temp files.

@echo off

echo Deleting IE temp files...
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

echo Deleting *.tmp *._tmp *.log *.chk *.old...
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

echo Deleting recycle bin, temp dir, etc...
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp

echo Clean system disk...
%windir%\system32\sfc.exe /purgecache

echo Defrag system drive...
%windir%\system32\defrag.exe %systemdrive% -b

echo Finished!

echo. & pause


Related posts:


Search related in web:

Custom Search

RSS Feed

One click subscribe this blog in your google reader!

Be social!


Want to say something here? please sign in



Blog posts link to this page
What are friends tweeting?
Tags cloud
Monthly Archives