Hello. I am now going to show you how you can remove all Temporary Internet Files (from here refered as Temp)(it will not delete cookies) at startup.
Requirements:
- Windows XP (might work with other versions)
- This tutorial
So, open up an notepad file (Start -> Run -> Notepad). This is the program we are going to program in. You do not require any skills in windows/batch-programming, as this guide tells you everything.
An explaining of the commands we will use.
@echo off - This means the commands you write below wont show in the command promt(cmd).
cls - This emptys your cmd to be blank.
del /F /S /Q - This deletes the files inside the folder at the shown path. /F /S and /Q makes it delete the files without asking for your permission.
This is what my file look like:
Code:
@echo off
cls
del "C:\Documents and Settings\Bendik\Lokale innstillinger\Temporary Internet Files\*.*" /F /S /Q
del "C:\Documents and Settings\Bendik\Lokale innstillinger\Temp\*.*" /F /S /Q
del "C:\Windows\Temp" /F /S /Q
del "C:\WINDOWS\Prefetch" /F /S /Q
And all you do is to open your harddrive where windows is placed. This is usually C:. Then open the "Documents and Settings" folder, and open you accounts folder, then open the hidden folder wich i think i called "Local settings" in english (unconfirmed). Then open the folder called Temporary Internet Files or whatever its called on you computer, and copy the path (same place as the adress bar in your browser is by default) into your notepad file. Do this with the other folder in the "Local settings" folder, called "Temp" or somehow. If you dont got one, remove that line. Remember to leave the "*.*" to be there, or this wont work. Also, "Documents and Settings" folder got spaces in the name, so it requires you to have an " to mark the path.
Then you can leave the 2 bottom lines as they are. If you do not want to remove the files in the Prefetch folder (It wont harm you computer) you can remove that line.
Now its time to save your document: File -> Save as... -> Tempfiles removing.bat and save it to your desktop (or anywhere else you want to be, but remember where it is.)
Now you can run it, and an cmd window will open and alot of text will be shown and running. That is the program you want to be running at every startup.
So now you can eigher drag it into the Startup-folder at the start-menu, or you can add it to the register.
To add it to the Startup-folder you have to leftclic start-menu -> All programs, then rightclick the Startup-folder there, and click Open. Now cut or copy your file (the .bat file) into this folder, and there you go, it will run at every startup.
If you want to add it to your registry, you do this: Start -> Run -> regedit, then if you want it to run at every user at the computer, choose HKEY_LOCAL_MACHINE, and if you only want it to effect the user that you are currently using, you choose the HKEY_CURRENT_USER. You choose this by leftclicking once at the " + " to the left of the folder. Now you continue into these folders: Software -> Microsoft -> Windows -> CurrentVersion -> Run.
Now at the right side, rightclick an empty space and click New -> Stringvalue (or something close to that, the option number 2 from top) and call it whatever you want. Now doubleclick it and type in the path to the bat file. I got mine on the desktop and its called "tempsletting.bat" so in my case its "C:\Documents and Settings\Bendik\Skrivebord\tempsletting.bat", so you change the path to where you saved your file, and remember to include the " .
If you want to remove this program: Delete the file from the Startup-folder if you placed it there. If you placed in the registry, you have to go to where you placed it (HKEY_CURRENT_USER/HKEY_LOCAL_MACHINE -> Software -> Microsoft -> Windows -> CurrentVersion -> Run, and delete the string.
Thanks for your attention, I hope you will like this guide and find it useful. If you do, please give me + reputation.
Feel free to ask any questions.
Greetings, XplittR