Jump to content

Change hour value of "Only delete files in Win Temp folders older than 24hrs"


photoreel

Recommended Posts

I'm wondering if there is a way to change the hours value of the "Only delete files in Windows Temp folders older than 24 hours" setting? For example, I'd like to change this setting to "Only delete files in Windows Temp folders older than 3 hours". Is that possible in any of the versions of CCleaner? If so, which version of CCleaner would I need and how would I change this value?

Link to comment
Share on other sites

  • Moderators

not doable with that option you mention, either turned on for more than 24 hours or turned off for not at all.

 

a work-around would be to turn it off and manually INCLUDE the Temp folders yourself.

that method lets you put in whatever hours you like.

 

something like this might get you started;

   Include1=PATH|%systemdrive%\ProgramData\TEMP\|*.*|RECURSE|0|0|24
   Include2=PATH|%UserProfile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\|*.*|RECURSE|0|0|24
   Include3=PATH|%UserProfile%\AppData\Local\Temp\|*.*|RECURSE|0|0|24
   Include4=PATH|%windir%\temp\|*.*|RECURSE|0|0|24

and you change the 24 to the hours you want.

Backup now & backup often.
It's your digital life - protect it with a backup.
Three things are certain; Birth, Death and loss of data. You control the last.

Link to comment
Share on other sites

  • 5 years later...
On 14/07/2017 at 23:21, mta said:

and you change the 24 to the hours you want.

And what is the least value?
I'd like to clean files older than 1 min.

 

Regarding the following lines, what other lines have to be taken into account and added in order to be compatible with Windows 7, 8, 8.1, 10 and 11 ?

Quote

Include1=PATH|%systemdrive%\ProgramData\TEMP\|*.*|RECURSE|0|0|24
Include2=PATH|%UserProfile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\|*.*|RECURSE|0|0|24
Include3=PATH|%UserProfile%\AppData\Local\Temp\|*.*|RECURSE|0|0|24
Include4=PATH|%windir%\temp\|*.*|RECURSE|0|0|24

 

TIA

Edited by Mister X
Link to comment
Share on other sites

  • Admin
13 minutes ago, Mister X said:

I'd like to clean files older than 1 min.

That seems rather specific.  Any reason not to just switch off that option and delete all temp files? 

Piriform Homepage - [CCleaner - CCleaner Mac - CCleaner Android - CCleaner Browser - Recuva - Speccy - Kamo] - Product Support

Looking for your licence key, expiry date or download link? Check here first: https://www.ccleaner.com/support/license-lookup
To find out how we protect your privacy - read CCleaner's Data Factsheet.
What's new? Check the latest CCleaner for Windows release notes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.