We are not sure, but it seems people loves Windows 7 right click menu tricks more.
Well, this time we will vanish the temporary files in one click from right from the right click context menu in Windows 7. Like this:
As usually, we need two things: a batch file to carry the job, that is to clean the temporary files and a registry file to add it to right click menu.
Creating the batch file to delete the temporary files in Windows 7:
Open Notepad. Write the following things:
cd C: Users % username% AppData Local rmdir / S / Q Temp
Save the file asand do not forget to change the file type from text to All files from drop down menu in Notepad before saving it.
is just a name; we could have name it TheCustomizeWindows.bat ; but in that case we have to the rename in next step.
Test the batch file if it is working rightly by double clicking it. You will see command window opens and closes momentarily and if you search with *.temp you will get nothing. Then it is OK.
Change the % username% part with your own username. For example, my one should be % Abhishek%
Place it in C partition.
The Registry file to get it in right click option:
This will add the functionality to get working from right click context menu.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellClear Temporary Files]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellClear Temporary Filescommand]
Save the file asand do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Name does not matter here at all. You can save as you like.
Now, double click the reg file and accept the security warnings and you will see the option in right click context menu when clicked on a folder or any empty place inside folder or Windows 7 desktop.
The green text is what you want to see in right click context menu. We could have name it Mr. Clean.
The pink text is the location of the batch file; you can change it as well. Frankly, we have not tested in other complicated ways, we have used conventional location.
The red text is the name of the batch file.
Add a minus sign before the H starts after the third bracket; liketo all where there is HKEY and save it (with some good name) as reg file and run it. It will break the association; so the option will disappear from right click context menu.
Obviously, you might delete the bat file manually too.
The rar file is password protected, type thecustomizewindows.com as the password.