How to delete Win10 temporary files? Win10 automatically deletes the temporary file setting method

  

How to delete the Win10 temporary file? As we all know, when the Windows system is used, it will generate various temporary garbage. If it is not cleaned for a long time, it will cause serious hard disk space and affect the computer fluency. Today, the computer Pepsi network Xiaobian will teach you how to delete the Win10 temporary files, and also attach a more advanced automatic deletion temporary file setting method.

How to delete Win10 temporary files? Win10 automatically deletes the temporary file setting method

Win10 temporary file location: C:\\Users\\username\\AppData\\Local\\Temp folder (C stands for system disk, if the system disk is another drive letter, then change A), the files in the temporary folder can be deleted by the user. The following is the Win10 method for deleting temporary files.

Manually delete the Win10 temporary file method:

1, first use the Win + R combination shortcut, open the run dialog box, and then type the command: %tmp% when finished, click Ok, as shown.

After that, you can quickly open the Win10 temporary folder. We can delete the temporary files generated here, as shown in the following figure.

Win10 delete temporary file method

Win10 automatically delete temporary file setting method

If you say that it is very troublesome to manually delete the Win10 temporary file every time, the following teaches you more advanced One method can realize that the Win10 computer automatically deletes temporary files every time it is turned on, and the setting method is as follows.

1, first create a new Notepad file in the desktop, and then copy the following command into the Notepad file:

@echo off

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

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

2. When finished, in the file in the Notepad menu, select “Save as ”, then the file name is “ldquo; Automatically delete the temporary file .bat”, save the type as “ld”; All files & rdquo;, as shown.

3. Finally, the automatic cleaning temporary file .bat will be placed in the booting item of the computer. The specific method is to use Win + R again to open the run command box, then enter the “shell:Startup” command, and click “ OK & rdquo; open, as shown.

Finally, copy the temporary file .bat” file to the boot folder, as shown in the figure.

After the above operation is completed, the Win10 computer will automatically clean up the temporary file garbage every time it is turned on, and no longer need to manually operate it. How do you feel very good? Interested friends, may wish to try.

Ps. For those who don't want to create a self-cleaning temporary file .bat file, you can also download the "Click here to download" computer Pepsi.

Copyright © Windows knowledge All Rights Reserved