How to automatically clean up junk files when shutting down under windows7 system

  
        

How to automatically delete the desktop folder when the win7 computer is shut down? Many users have the habit of cleaning up the system's junk files sometimes when they shut down, but occasionally forget to clean up the folder when they shut down, then Is there a good way to automatically clean these files when the system is shut down under the Windows 7 operating system? The method is yes, let's learn it with Xiaobian.

1. First right-click on the blank space in the desktop and select “New--Text Document” and enter “<quo;del folder path/q” (relative path);

2 And then save the file as "Clear folder lhj.bat" (this is equivalent to a new empty system file);

3, then ready to run the work, first click & ldquo; start - run ”, in the Run dialog box, enter “gpedit.msc” Enter to open “Local Group Policy Editor>;

4, in the open window, open “Computer Configuration”&rarr ;windows configuration → script, find and double-click "Shutdown" in the right side of the window, select “ add → browse → find the bat file saved above, and then click OK.

About how to let the win7 computer automatically delete the desktop folder when it is shut down, let's share it with you. No matter how you use the system, you will always leave some junk files during the operation. The above method will allow win7 to automatically clear these files when you shut down, and give it a try.

Copyright © Windows knowledge All Rights Reserved