How to Automatically Delete Temporary files in Windows PC ( No Software)

in #automatically6 years ago

How To Increase Windows 10 Performance By Deleting Temp Files At Every Start-Up:- Whenever a file is created, correspondingly a temporary file is also created with the extension.TMP. These temporary files pile up in the hard drive space until you delete them. So what’s the problem with that, you may wonder. The more the space occupied in the hard drive by unwanted files, the lower the system performance would be. You can delete the temporary files either manually or you can assign a batch file to do this job for you. Both the ways are explained in detail through the following steps. So what are you waiting for? Let’s all work together for a better world which has efficient PCs.

Delete Temporary Files Automatically At Every Start-Up
Want to be a little techier? Or too lazy to clean up the temporary files every single time? Well, then let’s write a quick batch file which will do the job for you at every single startup.

STEP 1

Launch Notepad. You can quickly launch the Notepad by opening the Run dialog box and by typing in Notepad and hitting enter key. You can open the Run dialog box by pressing the WIN+R keys together.
STEP 2

Now copy-paste the following code into your newly opened Notepad file.
rd %temp% /s /q
md %temp%

STEP 3

The next step is saving the file. But the question is where to save? It should be saved in the startup folder such that every time the system boots up, this file will be called and it will clean up all the temporary files that eat up your space unnecessarily.
To save the file, hit CTRL+S keys together. Or you can click on the File tab at the top and then choose Save as the option. Once the Save as the window opens up, choose Save as type as All Files. For the File name option, copy-paste the following path and file name.

%appdata%\microsoft\windows\start menu\programs\startup\cleantemp.bat

The name of your file is cleantemp.bat. And you don’t have to bother to copy and paste it in the startup the folder as you have already mentioned the startup folder path in the name of your file. So whenever your system boots up, the temporary files will be deleted by this batch file. If some of the files are in use, then they may not be deleted. In that case, try closing the running processes and run the batch file again. You can check whether the number of temporary files has reduced by going to the temporary files folder specified in Method 1.
STEP 4
If you want to delete this cleaner file from the startup, you can just copy-paste the path %appdata%\microsoft\windows\start menu\programs\startup in Windows file explorer and delete this file.

Thank you for watching this video

Sort:  

Congratulations @aancreation! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 50 upvotes. Your next target is to reach 100 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.17
TRX 0.24
JST 0.034
BTC 96428.85
ETH 2753.27
SBD 0.65