Shutdown/Shutdown script (XP Pro only):
Double-click "My Computer", double-click the C:\ drive.
Right-click a blank area, select "New Text Document". Double-click the "New Text Document.txt"
Copy & paste the below into the text file: (Change "C:\Temp" to the location of YOUR temp folder)
rd /s /q C:\Temp
md C:\Temp
Save the file, then rename it to deltmp.bat
NOTE "rd" removes the entire tree "C:\Temp" and ALL it's contents (including subdirectories)
NOTE "md" recreates the tree (empty)
Click Start, Run and enter GPEDIT.MSC
Go to Computer Configuration, Windows Settings, Scripts, Shutdown.
Browse to the location you saved the "deltmp.bat" file, and select it.