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
- 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
May be interested
- Free memory space after updating Windows 10 Anniversaryafter upgrading windows 10 version to windows 10 anniversary update (version 1607), windows 10 will automatically create a backup copy of the previous version of windows 10 into the folder named windows.old so that users can remove it. install windows 10 anniversary update and use the previous version of windows 10.
- Wipe Recent Files search history on File Explorer Windows 10every time you manipulate any action on file explorer, such as opening folders, or files, .... on your windows 10 computer. file explorer will show you the most recently used folders and files.
- How to access Safe Mode Windows 10 on startupthere are many ways to enter safe mode on windows 10, in case you cannot access windows and access it. to enter safe mode windows 10 when starting the computer, please refer to the following article of network administrator.
- How to create Restore Point on Windows 10 with just 1 double clickrestore point is one of the unique and best features of windows operating system, which helps users quickly restore system files to a previous state without changing saved data. in the following article, network administrator will guide you how to create restore point on windows 10 'super fast' and 'extremely simple', with just a few taps.
- Fix error 'This Publisher has been Blocked from Running Software on your Machine' on Windows 10error 'this publisher has been blocked from running software on your machine' is one of the most common errors when users install a new application on windows 10, 8.1 and 7. operating system after recovering this error and continuing to install the application, please refer to the following article of network administrator.
- Set up VLC Media Player as the default multimedia player on Windows 10by default, windows 10 is integrated with windows media player as a multimedia player. however, if you feel too bored with windows media player, you can set up other multimedia players such as vlc media player as a multimedia player on windows 10. to do this, please refer to the article. below of network administration.