Question Locked

Temp files

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When ever I am working on my pc, it get slower due to non-deletion of temp files and folders. Each time I have to do it manually. This is really ridicules. If any body knows the way how these files can be removed automatically from the temp folder, please let me know.

Thanks

2 replies

by larrymcp

NOTE: Use windows explorer to make sure you know where your temp folders are.

A global search on the word, TEMP can help you find them all.

Create a batch file with a delete command for each major folder.

DEL /q /s "C:\TEMP"
DEL /q /s "C:\WINDOWS\TEMP"
DEL /q /s "C:\Documents and Settings\USER\Local Settings\Temp"

Create the last line for each user.

Save the file as: C:\DELTEMP.bat

Create a scheduled task to run the C:\DELTEMP.bat every day or hour, whatever.

This discussion is closed to new replies.