Automatically clean up temporary junk file setting tips when the computer is turned off

  

The computer will continuously generate a large number of system files and temporary junk files during use. If these junk files are not cleaned up in time, they will not only occupy a large amount of system disk space, but also directly affect the running speed of the system, but many Users ignore the cleanup of the computer before using the computer, and the computer becomes slower and slower over time.

In fact, we can set the computer to automatically clean up temporary files when it is shut down, so the computer will not accumulate a large number of temporary junk files. Let's take a look at the operation method of Win7 shutdown automatically cleaning temporary files.

Step 1: Create a .bat file that automatically cleans up temporary files.

1, Start - All Programs - Accessories - Notepad;

2, in the open notepad, type: del folder path /q, left click on the file, in Left click in the drop-down menu: Save As;


3. In the Save As window, click: Desktop, in the File Name (N) field, enter: Temporary File Cleanup.bat, Click again: Save.


Automatically clean up temporary junk files when the computer is shut down

Step 2: Add the temporary file cleanup .bat file to the script shutdown file.

1, start - run (enter 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 (Start /Shutdown), left-click on the right side of the window to close the shutdown;

3, in the shutdown properties window that opens, click: Add;

4, in the add script window, we click: browse;

5, found in the open desktop: temporary file cleanup .bat, and left button Double-click: Temporary file cleanup.bat;

6, Temporary file cleanup .bat file has been added, click: OK;

7, return to the shutdown properties window, Click: Apply - OK.

Create a .bat file that automatically cleans up temporary files, so that this file will run automatically when the computer is turned off, then the temporary junk files of the computer will be automatically cleaned up. This is also a must-have skill for lazy people. .

Copyright © Windows knowledge All Rights Reserved