Temp files

K

KenK

FWIW, I'm running XP Home.

I was watchinging, for once, my computer backing up the C drive. I noticed
that the C:\Windows\Temp directory was very large. I checked afterwards
with My Computer and it has ~270 MB. Is this really required? Seems quite
large for 'temporary' files. If not, is there a utility to manage this
directory?

On the other hand, C:\Temp is almost empty.

Suggestions?

TIA
 
K

Ken Blake, MVP

FWIW, I'm running XP Home.

I was watchinging, for once, my computer backing up the C drive. I noticed
that the C:\Windows\Temp directory was very large. I checked afterwards
with My Computer and it has ~270 MB. Is this really required? Seems quite
large for 'temporary' files. If not, is there a utility to manage this
directory?

On the other hand, C:\Temp is almost empty.

Suggestions?


Yes, they can, and should be, deleted periodically.

The temp folder provides workspace for programs. Programs can create
temporary files there for their own temporary use. Each program should
delete all its temporary files when it closes, but for various reasons
it doesn't always happen (for example, if the program crashes, it
never gets to do this). That's why it's a good idea to periodically
clean out anything left there.

Also note that there are some program installations which work in two
steps. The first step concludes by writing temporary files and
rebooting. The second step starts automatically after rebooting and
needs to find those files there (and then deletes them when it's
done).

Other than doing it automatically when rebooting (that would interfere
with installations like the kind I described), it's always safe to
delete the contents of the temp folder. Because it's safe to delete
any temp files that aren't open and in use by an application, and
since Windows won't let you delete open files, it's safe to (try to)
delete them at any time. If any fail to delete because they're open,
they'll either be deleted automatically when the app using them
closes, or you'll get them the next time you delete manually.

Some people may suggest that you reboot before deleting anything, but
that's not necessary, for the reason described above (on the other
hand, it doesn't hurt to do it).

No utility is needed. You can simply delete all the files there.
 
B

Buffalo

"Ken Blake, MVP" wrote in message
Yes, they can, and should be, deleted periodically.

The temp folder provides workspace for programs. Programs can create
temporary files there for their own temporary use. Each program should
delete all its temporary files when it closes, but for various reasons
it doesn't always happen (for example, if the program crashes, it
never gets to do this). That's why it's a good idea to periodically
clean out anything left there.

Also note that there are some program installations which work in two
steps. The first step concludes by writing temporary files and
rebooting. The second step starts automatically after rebooting and
needs to find those files there (and then deletes them when it's
done).

Other than doing it automatically when rebooting (that would interfere
with installations like the kind I described), it's always safe to
delete the contents of the temp folder. Because it's safe to delete
any temp files that aren't open and in use by an application, and
since Windows won't let you delete open files, it's safe to (try to)
delete them at any time. If any fail to delete because they're open,
they'll either be deleted automatically when the app using them
closes, or you'll get them the next time you delete manually.

Some people may suggest that you reboot before deleting anything, but
that's not necessary, for the reason described above (on the other
hand, it doesn't hurt to do it).

No utility is needed. You can simply delete all the files there.

Nice explanation.
Thanks
 
J

J. P. Gilliver (John)

Buffalo said:
"Ken Blake, MVP" wrote in message


Nice explanation.
Thanks
Seconded.

Though I think there _are_ a few badly-behaved prog.s that _do_ expect
to find what they put in the temp directory (or expect to find things
where they put them which can _default_ to the temp, or at least easily
be set there). IMO, you're better off removing any such software anyway
though!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top