Home > Tips & tricks > Windows 7: Automatically Delete Temporary Files

Windows 7: Automatically Delete Temporary Files

  • Sharebar

The Windows Disk Cleanup Wizard will delete your temporary files, but only if they are over a week old. To create a simple batch script that  will clean up your temporary directories:

Create the Batch File:

Open Notepad and type:

cd C:Users%username%AppDataLocal rmdir /S /Q Temp

And save the file as cleantemp.bat

Now double click on the file, you created, to remove your temporary
files and free up space on your computer. If this doesn’t work and gives
an access error, try replacing %username% with your windows login username.

To automate this process:

1.  Right click on the batch file you created and click create shortcut.

2.  Place the shortcut in your startup folder in the start menu (Customize Your Start Menu.)

3.  Now when you log in to Windows 7, your temporary files will be deleted.





Categories: Tips & tricks Tags:
  1. No comments yet.
  1. No trackbacks yet.

Uses wordpress plugins developed by www.wpdevelop.com Copy Protected by Chetans WP-Copyprotect.