Every time you can't go and clean temp directories to manually, so you can assign hotkeys to perform this delete operation. Follow the below steps to setup hotkeys:
- Goto run command and type prefetch and hit the OK button
- Goto run command and type temp and hit the OK button
- Now create the following batch file (.bat) with above-copied directories. Make sure you are using correct system directory in the below lines .
del %temp%\*.* /F /S /Q del C:\Windows\Prefetch\*.* /F /S /Q del C:\Windows\Temp\*.* /F /S /Q echo temp_cleared pause
- Above batch file uses del command to delete the files in specified directories using options /F /S /Q
- Now save this file as clean.bat at any location
- Goto desktop and right click -> New -> Shorcut
- Once the shortcut has been created, right click and go to properties and place the cursor in the shortcut text box and press the keys that you want to assign to this shortcut as hotkeys, as here I am using Ctrl + Alt + D
- Click the OK button to finish.
- Now every time you feel your system slow, you can press Ctrl + Alt + D to clear the cache.
Comments
Post a Comment