Temp files, can I delete them all?

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

Hi All,

Any problem deleting all .TMP offf my windows XP setup? What are the risks?
How come Disk Cleanup doesn't get them all?

Thanks,

Greg
 
All tmp files can be deleted. If they are from a old program that you no
longer use you may have to go to C:\Program Files
and delete the program folder. That's after you have remove the program
using Add/Remove Programs in Control Panel.
 
I have a batch file that does a searching delete of all temp files. The
reason this is safe is that, if a TMP file is active, you're not allowed to
delete it. i.e., the file is locked. So the attempt just produces an error on
that instance and continues on to the next.

Here's the batch script:
del %systemdrive%\*.tmp /s
del %systemdrive%\~*.* /s

There are ocassional knuckleheads who write programs that use tmp's that
aren't locked, and this might cause that one program to slow down as it
rebuilds the tmp dynamically.

Unless anyone else knows of some other pitfall, all I can say is I've been
running this batch program on my 80 machines for years with no problems.

JeffO
 

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

Back
Top