You can safely remove anything in C:\Windows\Temp that was created before the current Windows session. So the best time to have it automatically emptied is during boot-up. Here's how to do that:
Select Start, Run, type the command sysedit and press Enter to launch the System Configuration Editor. Once there, go to the autoexec.bat window. That batch file may contain text, or it may be blank. Either way, add these two lines:
deltree /y c:\windows\temp
md c:\windows\temp
Save the file and exit the program or click on the X to close. When asked if you want to save changes, click Yes. Next time you restart the temp files will be deleted.
From now on, you'll get an empty temp folder every time you boot
0 comments:
Post a Comment