Ubuntu deletes temporary files by default after reboot, but Windows doesn't. How to make Windows to do the same?
Instead of going through the trouble (and danger) of doing this manually, I would recommend a program like CCleaner which can automate this process and leaves alone files that were created within the last 24 hours.
This is quite important, since some programs that might also run on startup could already be using temporary files, potentially causing issues. On Linux, the
Here's how to make CCleaner start with Windows:
Make sure only "Temporary Files" and other things you really want to clear on every startup are checked:
CCleaner should only delete files over a day old by default, but it doesn't hurt to check this setting:
After all this is done, CCleaner should run quietly in the notification area at every startup. The icon will disappear when cleaning is complete.
I don't think there's an option for that. You can create a
Delete all files in %temp% but leave the folders untouched:
Delete everything on %temp%:
Be aware that some programs use files in
To make the
As a matter of fact, it is a waste of processor time to perform such a cleanup every startup.
Instead, add a scheduled task, triggered once a week to execute a batch located in the same directory of ccleaner, containing:
This will perform a scan and automatic cleanup without any prompts to all boxes ticked on ccleaner and WILL include user-specified directories. (does not perform registry fixes)
extra tip: on batch properties, you may even select it to run minimized, so it bothers you less on the startup; the scan will be rather quick and probably you wont even notice the minimized window.