XP system how to set up automatic Cleanup Temp folder
Automatic Cleanup method:
1. Establishment of D:USERDATATEMP catalogue in D-disk
02. Right-click My Computer, properties, advanced, open the Environment Variables dialog box, change both the user variable and the system variable to d:userdatatemp.
03. Create a new text document and write two lines of code inside it:
RD%TEMP%/s/q
MKDIR%TEMP%
Then save it as a *.bat format (for example, cleantemp.bat) so that you can automatically empty the files under the Temp folder just by opening the Cleantemp.bat file.
04. After three steps, we can actually clean up the temporary files, but we can't meet them, our goal is to let Windows automatically empty and liberate our hands:
Open Group Policy (run Gpedit.msc), turn on "Computer Configuration-windows Settings-script (boot/Shutdown)", and then open "start" or "Shut down", the effect is the same, one is to empty the temp at login is off when empty, here I choose "Shutdown". Click "Add" to just do the *.bat file import, point "OK" after everything is done.