***WARNING***
Use at your own discression.
Use ONLY with Windows XP
This is a very powerful program and if used incorrectly can remove files you may need and in worst case senario's can delete your whole hard drive if you add anything to it.
Please follow the steps exactly.
I have created this program about 2 years ago. It still works beautifully and I use it daily.
It can be used with windows 95/98 and ME but you will have to edit the whole file and know what you are doing. I don't suggest you mess with it if you don't know what you are doing.
Lets get started.
Open up NOTEPAD and paste this into it.
CODE
@ECHO OFF
ECHO My Custom Clean-up
PAUSE
ECHO Now Cleaning Cookies...
DEL C:\Docume~1\Matt\Cookies\*.* /q
ECHO Now Cleaning Recent Documents...
DEL C:\Docume~1\Matt\Recent\*.* /q
RMDIR C:\Docume~1\Matt\Recent\ /q /s
ECHO Now Cleaning Temp...
DEL C:\Docume~1\Matt\LocalS~1\Temp\*.* /q
RMDIR C:\Docume~1\Matt\LocalS~1\Temp\ /q /s
MKDIR C:\Docume~1\Matt\LocalS~1\Temp
ECHO Now Cleaning History...
RMDIR C:\Docume~1\Matt\LocalS~1\History\ /q /s
MKDIR C:\Docume~1\Matt\LocalS~1\History\
Echo Now Cleaning Temporary Internet Files...
DEL C:\Docume~1\Matt\LocalS~1\Tempor~1\*.* /q
RMDIR C:\Docume~1\Matt\LocalS~1\Tempor~1\ /q /s
ECHO Now Cleaning Windows Prefetch...
DEL C:\WINDOWS\Prefetch\*.* /q
ECHO Now Cleaning Windows Temp...
RMDIR C:\WINDOWS\Temp\ /q /s
MKDIR C:\WINDOWS\Temp
ECHO Custom Clean-up Finished
PAUSE
ECHO My Custom Clean-up
PAUSE
ECHO Now Cleaning Cookies...
DEL C:\Docume~1\Matt\Cookies\*.* /q
ECHO Now Cleaning Recent Documents...
DEL C:\Docume~1\Matt\Recent\*.* /q
RMDIR C:\Docume~1\Matt\Recent\ /q /s
ECHO Now Cleaning Temp...
DEL C:\Docume~1\Matt\LocalS~1\Temp\*.* /q
RMDIR C:\Docume~1\Matt\LocalS~1\Temp\ /q /s
MKDIR C:\Docume~1\Matt\LocalS~1\Temp
ECHO Now Cleaning History...
RMDIR C:\Docume~1\Matt\LocalS~1\History\ /q /s
MKDIR C:\Docume~1\Matt\LocalS~1\History\
Echo Now Cleaning Temporary Internet Files...
DEL C:\Docume~1\Matt\LocalS~1\Tempor~1\*.* /q
RMDIR C:\Docume~1\Matt\LocalS~1\Tempor~1\ /q /s
ECHO Now Cleaning Windows Prefetch...
DEL C:\WINDOWS\Prefetch\*.* /q
ECHO Now Cleaning Windows Temp...
RMDIR C:\WINDOWS\Temp\ /q /s
MKDIR C:\WINDOWS\Temp
ECHO Custom Clean-up Finished
PAUSE
Now. What you need to edit on this is where it says Matt everywhere.
what you change it to depends on your computer. To find out what you change it to, you need to open up your C:\ drive and navigate to this destination.
C:\Documents and Settings
There you will see a few folders. 1 will be All Users and one will be Default User
*Note* if you don't see default user, it's because you have hide hidden files and folders turned on so don't worry about it. what you are looking for is the account on the computer in which you use daily. It can be called Owner, or something you named it when you installed XP. Mine is called Wheels.
So I would rename every line in the above code that has Matt in it to Wheels like so.
CODE
@ECHO OFF
ECHO My Custom Clean-up
PAUSE
ECHO Now Cleaning Cookies...
DEL C:\Docume~1\Wheels\Cookies\*.* /q
ECHO Now Cleaning Recent Documents...
DEL C:\Docume~1\Wheels\Recent\*.* /q
RMDIR C:\Docume~1\Wheels\Recent\ /q /s
ECHO Now Cleaning Temp...
DEL C:\Docume~1\Wheels\LocalS~1\Temp\*.* /q
RMDIR C:\Docume~1\Wheels\LocalS~1\Temp\ /q /s
MKDIR C:\Docume~1\Wheels\LocalS~1\Temp
ECHO Now Cleaning History...
RMDIR C:\Docume~1\Wheels\LocalS~1\History\ /q /s
MKDIR C:\Docume~1\Wheels\LocalS~1\History\
Echo Now Cleaning Temporary Internet Files...
DEL C:\Docume~1\Wheels\LocalS~1\Tempor~1\*.* /q
RMDIR C:\Docume~1\Wheels\LocalS~1\Tempor~1\ /q /s
ECHO Now Cleaning Windows Prefetch...
DEL C:\WINDOWS\Prefetch\*.* /q
ECHO Now Cleaning Windows Temp...
RMDIR C:\WINDOWS\Temp\ /q /s
MKDIR C:\WINDOWS\Temp
ECHO Custom Clean-up Finished
PAUSE
ECHO My Custom Clean-up
PAUSE
ECHO Now Cleaning Cookies...
DEL C:\Docume~1\Wheels\Cookies\*.* /q
ECHO Now Cleaning Recent Documents...
DEL C:\Docume~1\Wheels\Recent\*.* /q
RMDIR C:\Docume~1\Wheels\Recent\ /q /s
ECHO Now Cleaning Temp...
DEL C:\Docume~1\Wheels\LocalS~1\Temp\*.* /q
RMDIR C:\Docume~1\Wheels\LocalS~1\Temp\ /q /s
MKDIR C:\Docume~1\Wheels\LocalS~1\Temp
ECHO Now Cleaning History...
RMDIR C:\Docume~1\Wheels\LocalS~1\History\ /q /s
MKDIR C:\Docume~1\Wheels\LocalS~1\History\
Echo Now Cleaning Temporary Internet Files...
DEL C:\Docume~1\Wheels\LocalS~1\Tempor~1\*.* /q
RMDIR C:\Docume~1\Wheels\LocalS~1\Tempor~1\ /q /s
ECHO Now Cleaning Windows Prefetch...
DEL C:\WINDOWS\Prefetch\*.* /q
ECHO Now Cleaning Windows Temp...
RMDIR C:\WINDOWS\Temp\ /q /s
MKDIR C:\WINDOWS\Temp
ECHO Custom Clean-up Finished
PAUSE
Now save your file as clean-up.bat and change the type to all types and save it to desktop.
Double Click the file to run it.
It'll say hit any key to continue. Hit enter or space or something
It'll run through all the files and delete all the useless files on your computer and then will say press any key to continue
Hit enter and the program will close.
*Note*
When the program runs it will sometimes say it could not remove files because they are in use by another program. Don't worry about it. it's normal.
Run this program once a day or once a week, depending on how much you use your computer.
Wheels2285