![]() |
|
|||||||
| Cheats, Tricks & Hacks This is a hack forum. In here you will find info that will enable you to do bad things like cheating and hacking games. |
| View Poll Results: What did this tutorial do for you? | |||
| Nothing? |
|
1 | 100.00% |
| Something! |
|
0 | 0% |
| Everything! |
|
0 | 0% |
| Excellent help! |
|
0 | 0% |
| More then I bargained for! |
|
0 | 0% |
| Multiple Choice Poll. Voters: 1. You may not vote on this poll | |||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Moderator
Join Date: Apr 2008
Posts: 77
Rep Power: 3
![]() |
How to create a Batch file to auto delete the temp folder upon request or startup or both (This is Not Dangerous) on Windows 7 FAQ's Q: Why would I want to delete my temp folder?A: Every-time you install something, browse the net, play a game, or even watch a high quality movie. The streaming of a movie, pre-level rendering of a game, online temp files and Installation files. Q: Does this prevent me from using the temp folder? A: Not at all it only deletes the files within it that are volatile. Q: How do I get the temp folder back after deleting it? A: Each time you delete the temp folder, it is not gone forever! The temp folder is recreated upon any software utilizing it! In other words, if you delete it and then you play a certain game or install software. The folder is recreated again clean! Q: What are the benefits of doing so? A: You will always have a clean temp folder as well as save your hard drive space. Purpose When you install a program or play certain games, they leave file "residue"! It does not erase itself. You have to erase it yourself. I will be showing you how to create a batch file that will auto delete the temp folder upon boot, as well as a shortcut for those who surf the net allot! As for those who play intensively with many different games, it will clean out the temp file of old graphics that where stored in the temp folder. If you are constantly installing and uninstalling software or if you just had your Desktop/Laptop for a while and just want to clean it!? Then this is what you need! Tutorial for Temp & Tutorial for Cookies! These two tutorials are for use with notepad only. Just copy and paste the codes below to notepad and space them out appropriately. Now save as with all files selected and name the Temp "TempCLN.bat" and name the Cookies "CookiesCLN.bat" place them in the same folder! #1 TEMP @echo on@echo Starting Temp Clean Up! rmdir "%userprofile%\AppData\Local\Temp" /s /q @echo Finished Temp Clean Up! call "CookiesCLN.bat" @echo off @pause #2 COOKIES @echo on@echo Starting Cookie Clean Up! rmdir "%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies" /s /q rmdir "%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\Low" /s /q @echo Finished Cookie Clean up! @echo off Now what you are going to do is, create a shortcut to the temp folder to the desktop. Right click on the Temp batch file navigate to Send to>Desktop! Copy the shortcut you just created on the desktop. Navigate to "Start Menu>All Programs>Startup"! Right Click the "Start Up" folder and Explore All Users! Paste the shortcut within this file. Right click the shortcut once more and pin to taskbar! Should you choose to activate it at will. Just Click the taskbar shortcut you just made! Other then that you will have it work for you automatically every time you log onto your Desktop/Laptop! BILL ~ATI~
Last edited by BillATI; 07-02-2010 at 06:37 PM. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| batch file, clean, refresh, temp cookies batch |
| Thread Tools | |
|
|