Friday

How to Delete Temporary Files using Notepad



In my last post, I told you to make calculator using notepad and now I am going to tell you to make your computer fast deleting temporary files with a notepad trick.



Delete temporary files


Step 1. Open Notepad.

Step 2. Paste the below code in the notepad.

To delete temporary files

@echo off

del /f /q %windir%\Temp\*.*

del /f /q "%userprofile%\local settings\temp\*.*"

Del /f /q "%userprofile%\local settings\temporary internet files\*.*"



To delete prefetch files 

@echo off

del /f /q %windir%\Prefetch\*.*




To delete cookies

@echo off

del /s /q "%userprofile%\cookies\*.*"



Read : How to open control panel using cmd


Step 3. save the file as name.bat.

You can replace name.



Step 4. Open the file.


If you type the first code to delete temporary files and you want to see that trick works or not, Go to Start > Run, type %temp% in the run box and click ok, you will see that temporary files has deleted.



No comments:

Post a Comment