HOWTO: Keep Windows in good shape
Published on 2007/07/27 by Igor Levicki
In one of my my earlier posts I already mentioned some of the tools I am using to keep my Windows installation in good shape — fast and responsive. What I am going to do now is to debunk a myth called Windows Rot.
Every now and then someone complains how Windows gets slower over time ultimately leading to the need for reinstallation in order to regain lost performance.
Everybody knows what causes that performance loss — disk fragmentation, registry bloat, poor working habits and improper maintainance.
However, nobody seems to follow some pretty obvious ground rules when working with a PC so I am going to list the most important five rules here:
- Install only programs you use often
- Organize your files
- Check for new drivers often
- Keep applications up to date
- Clean-up and tune-up your PC
As you can see, tuning is only number five on my personal list. Most people do it as if it was the one and only thing to do, and they often perform parts of it in wrong order or they use wrong tools. Stay with me if you want to learn how to do it the right way. You will need the following tools:
- Bootvis
- NTREGOPT
- PerfectDisk
What follows is a batch file you can use to clean-up your system partition before performing the optimization with the tools I mentioned above:
@echo off echo Killing Explorer... taskkill /F /IM explorer.exe echo Done. echo Cleaning Firefox Cache... REM *** Change YOUR_PROFILE to the exact name of your profile folder *** del /S /F /Q "%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Profiles\YOUR_PROFILE.default\Cache\*.*" echo Done. echo Cleaning Icons and Fonts Cache... del /AH /F /Q "%USERPROFILE%\Local Settings\Application Data\IconCache.db" del /F /Q "%USERPROFILE%\Local Settings\Application Data\GDIPFONTCACHEV1.DAT" echo Done. echo Cleaning Internet Explorer History... rd /S /Q "%USERPROFILE%\Local Settings\History\History.IE5" echo Done. echo Cleaning Internet Explorer and Outlook Temporary Internet Files... del /S /F /Q "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*" echo Done. echo Cleaning IE7 Updates folder... rd /S /Q "%WINDIR%\ie7updates" md "%WINDIR%\ie7updates" echo Done. echo Cleaning TEMP folder... rd /S /Q "%TEMP%" md "%TEMP%" echo Done. echo Cleaning *.log files from %WINDIR%... net stop "Automatic Updates" net stop "Windows Image Acquisition (WIA)" del /S /Q "%WINDIR%\*.log" net start "Automatic Updates" echo Done. echo Cleaning System File Checker cache... sfc /purgecache echo Done. echo Cleaning Minidumps... del /AH /S /F /Q "%WINDIR%\Minidump\*.*" echo Done. echo Cleaning Windows Update downloads... del /S /F /Q "%WINDIR%\SoftwareDistribution\Download\*.*" echo Done. echo Cleaning Recent Docs... del /S /F /Q "%USERPROFILE%\Recent\*.*" echo Done. echo Restarting Windows Explorer... start explorer.exe echo Done.
Download cleanup.bat (1,589 bytes)
Don't forget to change YOUR_PROFILE to the exact name of your Firefox profile and feel free to add more commands, for example to delete Internet and Windows Explorer browsing history or to empty some other folders of your choice.
Now that you learned how to improve performance, next logical step would be to learn how to keep it that way. Luckily, that is even easier. Things you should do in addition to the above mentioned optimization steps are reducing the number of running applications by emptying your system tray as much as possible and making sure that download applications such as Azureus, eMule or FlashGet always reserve space for the whole file before they start downloading it.
So, what are you waiting for? Go and apply some of that WD-40 to that Windows Rot of yours!