Not a too bad solution :-) But then possibly some application is blocking the temp folder. I may have a worse here. It can be renamed to temp1 (on boot using a boootable floppy or on safemode) and let the PC boot up. Restart the PC again and then change the name back to temp.
Incase the PC refuses to boot up, the folder name can always be changed back to temp.