Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In my workplace we use computers that are not personal. That means we each have a user and sit wherever possible when it's our shift, and then when we finish and leave someone might log us off and log in with his user.

That's all fine and good, but every time someone works, his local settings directory (I mean the one that is in C:\Documents and settings\Username...we use Windows XP) gets filled up with (I think) recovery files. And it never cleans up.

Every week or so the whole hard disk is stacked up and you need to manually erase other users 'local settings' to make up some free space.

Is there any way to configure windows to clean up that folder after each log off? Do I need to have an external program do it?

share|improve this question

migrated from stackoverflow.com Aug 17 '12 at 9:32

This question came from our site for professional and enthusiast programmers.

1  
It might be better to find out what application is creating these files and correct the problem. –  Harry Johnston Jul 29 '12 at 1:31
    
A lot of programs. We use a variety of unique programs including usual Microsoft software (Outlook, Word, Excel and so on). The problem isn't the backup, that's important if anything crashes. I just want it to clean up the folder when I log off. –  Yuval Bar-On Jul 29 '12 at 4:15
    
Applications don't normally leave stuff behind like that. Are they being shut down correctly? –  Harry Johnston Jul 29 '12 at 9:07
    
Yes. I'm not so tech savvy to know for sure that those are recovery files, but yes we shut down the programs correctly –  Yuval Bar-On Jul 29 '12 at 15:01
    
Those are most likely temporary files in `C:\Documents and Settings\username\Local Settings\Temp` folder. Most programs don't bother cleaning up their trash, including a view Microsoft programs. You can create a simple batch file to delete the contents of that folder. You can't schedule a program to run during log-off since at that stage, Windows expects that all programs can be terminated at any time. So you might want to schedule the batch file to run at logon. –  Jay Jul 30 '12 at 18:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.