- Open Notepad and type the following:
cd C:\Users\%username%\AppData\Local
rmdir /S /Q Temp - Save the file as cleantemp.bat
- Now double click o n the file 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 you windows login username.
Automating the Process of Deleting Temporary Files
To automate this process, so you do not need to remember to run it, do the following:
- Right click on the batch file and select create shortcut
- Place the shortcut in your startup folder in the start menu
Now when you log in to Windows 7, your temporary files will be deleted.
Thank You.
Regard,
Wp