Operation Steps:
1, the right mouse click on the desktop to create a new text document, double-click to open it, and then enter in the inside:
The code is as follows |
Copy Code |
Del folder path/q |
Note: The above command can also use a button to automatically clean the bat command
Then click "File-Save as" in the upper-left corner, as shown in the following figure:
2, in the pop-up Save as a window, we first click on "desktop", and then in the Save Type Drop-down box select "All Files", the file name is "automatically clean temporary files. bat", and then click the "Save" button, as shown in the following image:
3, after the completion of the previous operation, press the key combination (Win key +r) Open the running window, enter "gpedit.msc", carriage return confirmation. In the open Local Group Policy Editor window, click "Computer Configuration--windows Settings-script (boot/Shutdown)", and then double-click "Shutdown" in the right panel, as shown in the following illustration:
4, in the Shutdown Properties window, select the "Script" bar, and then click the "Add" button, as shown in the following image:
5, then in the Pop-up Add Script window click the "Browse" button, the desktop automatic cleanup temporary files. bat executable file added in, and then click the "OK" button, as shown in the following image:
6, finally in the Shutdown Properties window, click the "Apply-OK" button, as shown in the following figure:
The above is a small series of Win7 set shutdown Automatic Cleaning system garbage method, thank you for your reading!