How To Clear Temporary Files Automatically On Windows 10, When It Starts

[vc_row][vc_column][vc_column_text text_larger=”no”]Want to be a little more gizmo? Or too lazy to clean up the temporary files every single time? Well, then let’s write a quick batch file which will do Auto Delete Temp Files  at every single startup.

Clear Temporary Files Automatically On Windows 10 On Every Start Up

The most effective method to Increase Windows 10 Performance By Auto Delete Temp Files. At Every Start Up:- Whenever a document is made, correspondingly an incidentally record is additionally made with the expansion .TMP. These brief documents heap up in the hard drive space until the point when you erase them. So what’s the issue with that, you may ponder. The more the space involved in the hard drive by undesirable records, the lower the framework execution would be. You can erase the brief records either physically or you can relegate a clump document to carry out this activity for you.  Here are the Steps

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.

delete temp files on windows 10

Step 2. Now copy paste the following code into your newly opened Notepad file.

rd %temp% /s /q

md %temp%

auto delete temp files on windows 10

Step 3. The next step, obviously, 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.

Step 4. 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 option. Once the Save as window opens up, choose Save as type as All files. For the File name option, copy paste the following path and file name.


clear temporary files on windows 10

Step 5.The name of your file is cleantemp.bat. And you don’t have to bother to click and run it again and again, as it is kept in startup folder. 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 have reduced by going to the temporary files folder specified in Method 1.

Step 6. If you want to delete this cleaner file from the start up, you can just copy paste the path %appdata%\microsoft\windows\start menu\programs\startup in Windows file explorer and delete this file.

Hope this article helps you to “Clear Temporary Files Automatically On Windows 10 When It  Starts” useful. If you have doubts regarding any of the steps, please feel free to leave comments, we would be happy to help. Stay tuned for more updates on tricks, tips check our blog.

You can Check Our YouTube Video Also Below[/vc_column_text][/vc_column][/vc_row]

Techyuga Team

Techyuga Team

Hello World, We are a team of repair experts for laptops, mobile phones, iPhones, and more. We write a lot of how-to guides, repair tips, and more on our site, and help millions across the world. Do follow us on Social media for more..



Just fill out the form or call us and get instant support.