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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.