How to set win7 to automatically clear temporary folder data when shutting down? In the process of using the win7 system, do you have any problems with slow startup, slow shutdown, and slow usage? This is actually caused by too much temporary file data. We can solve this problem by setting the shutdown to automatically clear the temporary folder data. Below, the editor will bring you a tutorial on how to set up win7 to automatically clear the temporary folder data when the machine shuts down.
Step one: Create a .bat file to automatically clear temporary files.
1. Start-All Programs-Accessories-Notepad;
2. Enter the open Notepad: del folder path/q, left click Click the file, left-click the drop-down menu: Save;
##3. Open the Save As window, click: Desktop, in Enter in the file name (N) column: temporary file cleanup: .bat, click: Save. Step 2: Clean up temporary files: Add the .bat file to the script shutdown file. 1. Start - Run (enter gpedit.msc) - Confirm or return to the vehicle, open the local group strategy editor; 2. Expand local in turn Group strategy editing window: Computer Configuration - Windows Settings - Script (Startup/Shutdown), double-click the right side of the window to shut down; 3. Shut down to open the properties window, click: Add; 4. When adding the script window, we click: Browse; 5. In the open Find on the desktop: Clean temporary files.bat, left-click and double-click: Clean temporary files: Clean temporary files.bat; 6. File cleanup for temporary files.bat Click on the file : OK; #7. Return to the shutdown properties window, click: Application - OK.The above is the detailed content of How to set win7 to automatically clear temporary folder data when shutting down (tutorial). For more information, please follow other related articles on the PHP Chinese website!