computer in use will continue to produce a large number of system files and temporary garbage files, these garbage files if not cleaned up in time, not only will occupy a very large system disk space, but also directly affect the speed of the system, but many users before using the computer to ignore the cleaning of the computer, Over time the computer becomes more and more slow.
In fact, we can set up the computer to automatically clean up the temporary files when shutdown, so that the computer will not accumulate a large number of temporary garbage files, the following look at the Win7 shutdown Automatic cleaning of temporary file operation methods.
First step: Create a. bat file that automatically clears temporary files.
1. Start-All Programs-Accessories-Notepad;
2, in the open Notepad input: Del folder path/q, left-click File, in the Drop-down menu left click: Save As;
3, in the open Save as a window, click: Desktop, in the filename (N) column input: Temporary file cleanup. bat, then click: Save.
Tips for automatically cleaning up temporary junk files when a computer shuts down
Step Two: Add the temporary file to the script shutdown file by cleaning up the. bat file.
1, start-run (input gpedit.msc)-OK or enter, open the Local Group Policy editor;
2, in the Open Local Group Policy Editor window, expand: Computer Configuration-Windows Settings-script (boot/shutdown), left-click the window to the right of the shutdown;
3, in the Open Shutdown Properties window, click: add;
4, in the Add Script window, we click: browse;
5, found in the Open desktop: temporary file cleanup. bat, and left-click: temporary file cleanup. bat;
6, has added temporary file cleanup. bat file, click: OK;
7, back to the Shutdown Properties window, click: Application-OK.
Create a. bat file that automatically clears temporary files, so that the file automatically runs when the computer shuts down, then the temporary garbage file of the computer will be automatically cleaned up, which is also the necessary skills of lazy people oh.