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 first published in November 2001

Dig deeper on Windows Operating System Management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close