Source: xiaoxin Technology Network
Do you feel that your computer is getting slower and slower! Most of these are spam files. Is there a way for the computer itself to automatically clean up the garbage generated during the running process? The answer is yes. You can manually create an automatic cleanup tool for Windows spam files as follows:
Open notepad and enter the following content:
@ Echo off
Rmdir/s/q % temp %
DEL/F/Q/s c: *. tmp
DEL/F/Q/s c: *. gid
DEL/F/Q/s c: *. old
DEL/F/Q/s c: *. bak
Save it as "C: cleanpc. bat, press Win + R to open the "run" window, and enter "gpedit. msc open the Group Policy, go to computer configuration-Windows Settings-script (start/Close), double-click shutdown in the right pane, and then click Add, enter "C: cleanpc" in "Script Name. bat ". In this way, every time the computer is shut down, the system will automatically clean up junk files, so that your Windows will always be clean and good performance. Of course, some people may say that third-party software can do the same thing, but I feel that it is more fun to do it myself than to use other people's things. Last, I would like to remind you that the shutdown time may be slightly longer after this setting, but it is worthwhile to sacrifice this time for your computer to have a clean and good performance.