Sometimes, deleting the contents of temporary tmp files on your computer is a troublesome thing, especially when we need to do this frequently. In order to solve this problem, PHP editor Xiaoxin brings you a detailed method to automatically delete tmp temporary files in Win10. With the following steps, you can easily set up your system to do this task automatically, saving you time and energy. This article guides you through the setup process, providing the necessary examples and instructions so you can easily follow the steps to achieve your goals.
How to automatically delete tmp temporary files in Win10
1. First, we need to create a notepad on the desktop of the computer, and then enter the content:
@echo off
del "%tmp%*.*" /s /q /f
FOR /d %%p IN ("%tmp%*.*") DO rmdir "%%p" /s /q
2. Then save as, and the saved file name suffix should end with .at. Select "all types" for the save type below. Place the saved file on the desktop first;
3. Then use the shortcut key [Win+R] to open the run function, enter the "shell:Startup" command and click OK.
4. Then in the opened window, copy the .bat file of the desktop to the folder. This is the startup folder, so that every time you boot It will automatically clean up temporary files for you, isn't it very convenient?
The above is the detailed content of How to automatically delete temporary tmp files in Win10_How to automatically delete temporary tmp files in Win10. For more information, please follow other related articles on the PHP Chinese website!