Automatically delete temporary files every time a Windows 10 computer is opened

Whenever you create a file, a corresponding temporary file will also be created with the extension .TMP. Over time, temporary files will increasingly fill up and take up hard drive space on your computer. So you should clean up these temporary files to free up hard drive space, and to improve the performance of your Windows 10 computer.

Whenever you create a file, a corresponding temporary file will also be created with the extension .TMP. Over time, temporary files will increasingly "fill up" and take up hard drive space on your computer. So you should "clean up" these temporary files to free up hard drive space, and to improve the performance of your Windows 10 computer.

To delete temporary files, you can use batch files or delete them manually.

Automatically delete temporary files every time Windows 10 computer is opened:

Step 1:

Open Notepad on your Windows 10 computer by pressing the Windows + R key combination to open the Run command window, then enter Notepad and that and press Enter.

Automatically delete temporary files every time a Windows 10 computer is opened Picture 1Automatically delete temporary files every time a Windows 10 computer is opened Picture 1

Step 2:

Copy and paste the code below into the Notepad file you just opened.

rd% temp% / s / q

md% temp%

Automatically delete temporary files every time a Windows 10 computer is opened Picture 2Automatically delete temporary files every time a Windows 10 computer is opened Picture 2

Step 3:

The next step is to save the Notepad file again.

To save the Notepad file, press Ctrl + S or click the File tab in the top corner of the Notepad file, then select the Save As option. Now on the window that appears, Save As window, in the Save as type section, select All types .

In the File name section, copy and paste the link below into:

% appdata% microsoftwindowsstart menuprogramsstartupcleantemp.bat

Name your Notepad file is cleantemp.bat . And you don't have to copy and paste the file into the Startup folder anymore. From now on when the system starts, the batch file will automatically delete temporary files (temporary files).

If the files are being used, the batch file cannot be deleted. In this case, you must close the processes running and run the batch file again.

Automatically delete temporary files every time a Windows 10 computer is opened Picture 3Automatically delete temporary files every time a Windows 10 computer is opened Picture 3

Step 4:

If you want to delete this cleaner file from Startup, just copy and paste the following link into Windows File Explorer and delete the file:

% appdata% microsoftwindowsstart menuprogramsstartup

Automatically delete temporary files every time a Windows 10 computer is opened Picture 4Automatically delete temporary files every time a Windows 10 computer is opened Picture 4

Refer to some of the following articles:

  1. How to download Windows 10 Anniversary Update update?
  1. Activate Dark Theme on Windows 10 Anniversary Update
  1. Some tips to customize Taskbar on Windows 10 effectively

Good luck!

3.9 ★ | 7 Vote