Where is the Win10 temporary file? Win10 automatically cleans up temporary files

  

Where is the Win10 temporary file? When the windwos system is used for a period of time, the running speed will slow down. At this time, you need to clean the temporary files in the system to optimize the system running speed. So how do we let it automatically clean up temporary files in the Win10 system? Under normal circumstances, we need to open the address bar: %tmp% folder to clean up temporary files, inconvenient! The following small series will bring you win10 automatic cleaning of temporary files, let's take a look.

Steps:

1, press “Win+R” key combination to open the run, enter in the box: shell:Startup Click OK to open “Start” folder;

2, right click in the startup folder, select “New”—“Text Document", if pop-up anti-virus software allows window selection to allow;

3, open the new text document, copy the code into it:

@echo off

del "%tmp%\\*.*" /s /q /f

FOR /d %%p IN ("%tmp%\\*.*") DO rmdir "%%p" /s /q

4, click the close button , click “Save”;

5. Click the “View” tab in the toolbar of the folder and check the "file extension" on the right side;

6. Right-click the newly created version of the document and select “rename”, and change the following “txt” to “bat”, if the anti-virus software is blocked, click the window to allow it.

After setting, you can realize the function of automatically cleaning temporary files every time the computer is turned on, which can save us a lot of trouble. Thank you for reading, please pay attention to this website for more content!

Copyright © Windows knowledge All Rights Reserved