Quantcast

Answer Line

Protect yourself from bad installations; automate some PC housekeeping chores; securely delete sensitive files.

  • 0 Yes
  • 0 No

Empty the Temp Folder Automatically

Can I set something up to automatically empty the temp folder on a regular basis?

Francis Pham, West Chester, Ohio

You can safely remove anything in C:\Windows\Temp that was created before the current Windows session. So the best time to have it automatically emptied is during boot-up. Here's how to do that:

Select Start, Run, type the command sysedit and press Enter to launch the System Configuration Editor. Once there, go to the autoexec.bat window. That batch file may contain text, or it may be blank. Either way, add these two lines:

deltree /y c:\windows\temp

md c:\windows\temp

Save the file and exit the program.

From now on, you'll get an empty temp folder every time you boot.

  • Recommend this story?
  • 0 Yes
    0 No

Print 65% more pages than with refilled inks. Trust Original HP Inks. Hit Print Reliably.

Featured APC Accessories For Your System
10% Off Entire Cart at Online Store

  • APC Back-UPS ES Safeguards your equipment from damaging surges and spikes that travel along your utility & data lines.
  • APC SurgeArrest Performance Highest level of protection for your professional computers, electronics and connected devices, as well as provides surge protection.

Focus on Personal Productivitysponsored by Microsoft

  • Personal Finance 2.0 These free and fee-based Web services not only aggregate data from your online bank accounts, they give you tools for managing your money.
  • High-Tech Travel Tips Plenty of stories provide advice for elite mobile professionals. But what about you, the unproductive traveler?

People who read this also read:

  • HP Ink Center Bring improved color and brilliance to your printed material. Visit the Resource Center for more info...
  • Lenovo Laptop Showcase Find out how Lenovo IdeaPads and Thinkpads balance performance and portability. Visit the Lenovo Resource Center for more info...

PC World's Marketplace