How does Win7 set the shutdown to automatically clean up the system garbage? Win7 set to shut down the automatic cleaning system garbage

  

Win7 how to set the shutdown automatic cleaning system garbage? Cleaning up system garbage is an annoying job. We don't save time when we have to clean up the system garbage. Of course, some users may use the automatic cleaning system garbage bat for one-click operation, but this method is also easy to forget files. If we can let the computer automatically run the cleanup task every time it shuts down, we no longer need to manually clean up to achieve the effect of automatic cleanup. The following small series will bring you Win7 settings to shut down the automatic cleaning system garbage, let's take a look.

Operation steps:

1. Right-click on the desktop to create a new text document, double-click to open it, and then type in it:

del folder Path /q

Note: The above command can also use the one-button automatic cleanup bat command

Then click on the top left corner of the file--Save as ”, as shown below:

2, in the pop-up save as window, we first click “ desktop & rdquo;, then select “ all files in the save type drop-down box, the file name is taken as "automatically clean up temporary files" .bat”, then click the “Save” button as shown below:

3. After performing the previous step, press the key combination (Win key + R) to open the running window and enter “gpedit.msc”, Enter to confirm. In the open local Group Policy Editor window, we click on "Computer Configuration - Windows Settings - Script (Start /Shutdown)", then double-click "Shutdown" in the right panel, as shown below :

4. In the Shutdown Properties window, select the “Script” column and click the “Add” button as shown below:

5 Then, click the “Browse” button in the pop-up Add Script window to add the automatic cleaning temporary file .bat executable file on the desktop, and then click the “OK” button, as shown below:

6. Finally, in the shutdown properties window, click the “Apply--OK” button, as shown below:

The above is the result of Xiaobian. Win7 sets the method to automatically clean up the system garbage, thank you for reading, please pay attention to this website for more content!

Copyright © Windows knowledge All Rights Reserved