Problem solve Get help with specific problems with your technologies, process and projects.

Temp deletes

This tip offers an automated way to keep the clutter from the Windows temp file to a manageable minimum.

All Windows operating systems use the "c:windowstemp" directory to store uncompressed files, e-mail attachments...

and temporarily required files. These do not get automatically deleted and result in a very large directory of unwanted files.

Therefore, to delete unwanted temporary files when you startup every time, simply add in this line to your C:AUTOEXEC.BAT file:
"Echo Y|If     Exist C:WindowsTemp*.* Del C:WindowsTemp*.* >Nul"

This will ensure that the temp directory is empty every time you start up your PC.
This was last published in November 2001

Dig Deeper on Windows Operating System Management

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.