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.
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.
Step 2:
Copy and paste the code below into the Notepad file you just opened.
rd% temp% / s / q
md% temp%
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.
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
Refer to some of the following articles:
- How to download Windows 10 Anniversary Update update?
- Activate Dark Theme on Windows 10 Anniversary Update
- Some tips to customize Taskbar on Windows 10 effectively
Good luck!
You should read it
- What is Temporary File? How to delete temporary files on windows computers
- Free up space on Windows 10 by deleting temporary files
- Automatically frees free space on Windows 10 after 30 days
- Free up hard drive space automatically on Windows 10 with Disk Cleanup
- Delete junk files, temporary files in Windows
- How to Delete Temporary Files and Delete Prefetch Files from Your Computer
- Steps to remove temporary files stored on Kaspersky
- How to Delete Temporary Files in Windows 7
- How to schedule automatic file deletion in the folder Download Windows 10
- How to Clear Temp Files in Windows 10
- Automatically 'clean up' the Recycle Bin on Windows 10
- Delete the most 'stubborn' files on Windows