Sponsored Links

December 9, 2017

How to clean your Windows Temp folder

The temp folder contains files that are only needed temporally. Unfortunately, these files that are meant to be deleted don't always get deleted after their job is done, resulting in wasted drive space.

To open the temp folder, click Start or go to the Windows 8 Search, type %temp%, and select the folder that appears first. Once the folder is opened, you can manually delete files and folders. But you probably can't delete all of them. Windows won't let you do away with those currently in use. That's fine. You don't want to delete those ones anyway.

In fact, you really don't want to delete any files created since the last time you booted your PC. So if you shut down Windows every night (and I mean shut it down, not sleep or hibernate), and boot clean every morning, you can safely delete any files in Temp not dated today. You can easily do it in an old-fashioned way, DOS-style batch file to automatically clean out the folder every time you boot. Here's the process:

Open Notepad, and type these two lines:

    rd %temp% /s /q
    md %temp%

Save the file as %appdata%\microsoft\windows\start menu\programs\startup\cleantemp.bat. This will create the batch file, cleantemp.bat, inside your Start menu's Startup submenu. Everything in that menu loads automatically when you boot. Windows 8 doesn't have a Start menu. But it still has the folder. And the trick still works.

Enjoy!!!

No comments:

Post a Comment