chaos945
OSNN Senior Addict
- Joined
- 10 Feb 2003
- Messages
- 934
Here is my automated cleaning file, it has been made generic as possible but you must have Spybot and Regcleaner installed to make use of all the options.
Download Regcleaner
Download Spybot
If the installation path of Spybot or Regcleaner is other than 'C:\Program Files' you'll need to specify otherwise in the file. Also if you have other drives besides C:, D:, E:, F:, G:, H: that need to be defragmented you'll need to specify otherwise in the file as well. If you don't want to use my EXE file you must run config.bat to use the Windows Cleanmgr.
The source is as follows: OLD, new version below
Bugs:
* Cleanmgr.exe sometimes hangs, to continue with the cleaning process just end its task in the task manager
Download Regcleaner
Download Spybot
If the installation path of Spybot or Regcleaner is other than 'C:\Program Files' you'll need to specify otherwise in the file. Also if you have other drives besides C:, D:, E:, F:, G:, H: that need to be defragmented you'll need to specify otherwise in the file as well. If you don't want to use my EXE file you must run config.bat to use the Windows Cleanmgr.
The source is as follows: OLD, new version below
Code:
@echo off
echo Performing Spybot Operations...Please Wait
C:\Progra~1\Spybot~1\SpybotSD.exe /autoupdate /autoimmunize /autocheck /autofix /autoclose
cls
echo Cleaning Disk...Please Wait
cleanmgr /sagerun:n
del %TEMP%\*.* /q
del %TMP%\*.* /q
del %userprofile%\LOCALS~1\Tempor~1\*.* /q
del %userprofile%\LOCALS~1\History\*.* /q
del %SYSTEMROOT%\prefetch\*.* /q
cls
echo Cleaning Registry...Please Wait
C:\Progra~1\RegCleaner\RegCleanr.exe /Automatic Cleanup Mode
cls
echo -----------------
echo Defragmenting C:\
echo -----------------
defrag C:
cls
echo -----------------
echo Defragmenting E:\
echo -----------------
defrag E:
cls
echo -----------------
echo Defragmenting F:\
echo -----------------
defrag F:
cls
echo -----------------
echo Defragmenting G:\
echo -----------------
defrag G:
cls
echo -----------------
echo Defragmenting H:\
echo -----------------
defrag H:
cls
echo All Processes Complete
pause
Bugs:
* Cleanmgr.exe sometimes hangs, to continue with the cleaning process just end its task in the task manager