Jump to content

Return to Piriform.com

Scheduled Cleaning of Unnecessary Files


  • Please log in to reply
19 replies to this topic

#1 OFFLINE   mdjonson

mdjonson

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 22 August 2012 - 05:53 PM

I'm new to this forum, so pardon me if this has been suggested before.  I run regular automatic backups, and would find it useful to be able to schedule an automatic deletion of temporary files, browser cache files, and so on before the backup starts.  I don't know how difficult this would be to implement - perhaps it could be a feature for the Pro version only.  Would anyone else here find this useful also?

#2 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 22 August 2012 - 06:42 PM

+1

I like the idea, & it would be very useful to me.

I know there is already "Run CCleaner" on both shutdown & startup, but sometimes I do not feeling having it always run whenever I reboot.
I quite think it would be much better to be able to schedule CCleaner to run once a:

- Day
- Week
- Month

It would save wear on the drive & only run CCleaner when I really need it to.

:)

#3 OFFLINE   mdjonson

mdjonson

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 22 August 2012 - 09:52 PM

I found out after starting this thread that there are instructions in the CCleaner How Tos on the documentation page on how to use Windows Task Scheduler to accomplish most, if not all, of this.  However, I still think it would be nice if there could be a wizard in CCleaner itself to make the task easier to set up.  Something like what Norton Ghost has for scheduling would be ideal in my opinion.  MalwareBytes has its own scheduling setup too.  Maybe these are just front-ends for Windows Task Scheduler?  If so, it might be relatively easy to implement.

#4 OFFLINE   Andavari

Andavari

    .

  • Moderators
  • 15,008 posts
  • Gender:Male
  • Location:U.S.A.

Posted 23 August 2012 - 11:14 AM

Some backup programs allow for running another program before beginning a scheduled backup. Also if using a batch file to make the backup you could still have CCleaner automatically run.

The command to use would be:
CCleaner.exe /AUTO

Personally I do this with my batch file that makes backups.
Piriform software help documentation is available at:
http://www.piriform.com/docs

#5 OFFLINE   Alan_B

Alan_B

    Super Hero

  • Members
  • PipPipPipPipPip
  • 3,500 posts
  • Gender:Male
  • Location:Lancashire, England

Posted 23 August 2012 - 11:32 AM

I have used a BAT script to firstly run CCleaner and wait for completion and then to run a backup.

I guess the BAT script could be launched on a schedule - but I am NOT prepared to be dictated to by a machine :rolleyes:
When I have started I WILL FINISH what I started and only then do I launch my script.

#6 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 24 August 2012 - 11:36 AM

That's all nice, but it still would be far simpler if it had a scheduler like Defraggler.

So much simpler! I'd really like to be able to just "set it & forget it" where CCleaner can run once a year, month, week, day, etc.

#7 OFFLINE   Andavari

Andavari

    .

  • Moderators
  • 15,008 posts
  • Gender:Male
  • Location:U.S.A.

Posted 24 August 2012 - 04:36 PM

I believe this was brought up a long time ago as a suggested feature.

Whereas Defraggler is unlikely to cause issues CCleaner is another matter altogether for instance if it automatically cleans during an installation you're doing that has unpacked into the Temp folder, or a software installation that needs to finish on reboot all of a sudden having it's required files deleted. Just saying!
Piriform software help documentation is available at:
http://www.piriform.com/docs

#8 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 27 August 2012 - 07:37 PM

I thought that's what "Only delete files in Windows Temp folder older than 24 hours" setting is for?

Surely, if you install something & it isn't 24 hours old, that setting would prevent it's deletion?

Just sayin!!! :)

#9 OFFLINE   Andavari

Andavari

    .

  • Moderators
  • 15,008 posts
  • Gender:Male
  • Location:U.S.A.

Posted 28 August 2012 - 01:41 PM

If someone disables that 24 hour rule it would still cause problems! :P
Piriform software help documentation is available at:
http://www.piriform.com/docs

#10 OFFLINE   Alan_B

Alan_B

    Super Hero

  • Members
  • PipPipPipPipPip
  • 3,500 posts
  • Gender:Male
  • Location:Lancashire, England

Posted 28 August 2012 - 03:25 PM

In addition to %TEMP% folders,
there may be alternative locations for essential run-once installation files,
e.g. taken from an earlier WinApp2.ini  Version: v1.0.120206

Quote

[DisplayFusion*]
LangSecRef=3024
Detect=HKCU\Software\Binary Fortress Software\DisplayFusion
Default=False
FileKey1=%AppData%\DisplayFusion|DisplayFusion.log
FileKey2=%AppData%\DisplayFusion|DisplayFusionSetup.exe
I find that there are 19 separate *.exe files that WinApp2.ini v1.0.120206 targets for removal.

I consider it :-
bad practice to run CCleaner before shutdown if you have installed something that may need a reboot ;
utter folly to run CCleaner whilst installing or updating software ;
an open invitation to disaster when installing or updating if a scheduled CCleaner purge may occur.

#11 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 28 August 2012 - 05:53 PM

CCleaner could pop up a dialogue box that it is ready to begin scheduled cleaning.

And prompt user to ensure no programs are installing before beginning.

#12 OFFLINE   Andavari

Andavari

    .

  • Moderators
  • 15,008 posts
  • Gender:Male
  • Location:U.S.A.

Posted 28 August 2012 - 09:00 PM

If CCleaner were to prompt a scheduled cleaning wouldn't run automatically which would defeat the purpose of someone wanting to have CCleaner automagically run by itself, and if that were the case it would be far easier to just go back to running CCleaner manually.

This dicussion is going nowhere, so I'll bow out of it now.
Piriform software help documentation is available at:
http://www.piriform.com/docs

#13 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 28 August 2012 - 11:14 PM

I still think scheduled cleaning would be awesome.

CCleaner would need to have a few special settings:

1) Auto-ignore open web browsers (No prompt to close)
2) Auto check that "never delete files unless they are 24 hours old or older " setting of CCleaner.

#14 OFFLINE   Alan_B

Alan_B

    Super Hero

  • Members
  • PipPipPipPipPip
  • 3,500 posts
  • Gender:Male
  • Location:Lancashire, England

Posted 29 August 2012 - 08:14 AM

Scheduled CCleaner would result in inferior cleaning unless you add a few more special settings such as :-

3) Auto-Run and clean-up after Web-Browsers have closed
4) Auto-Run to delete the files that have just become 24 hours old or older.

#15 OFFLINE   mdjonson

mdjonson

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 29 August 2012 - 05:23 PM

Let me elaborate a bit - I run my PC 24/7, and my scheduled backups take place at around 5:30 a.m.  I am not going to be installing anything at that hour.  Anyway, it seems to me that the arguments above against scheduled cleaning should apply equally to manual cleaning - who is going to know what files a particular installation needs or where they are located?  If you don't reboot when needed, a manual cleaning is likely to be as dangerous as a scheduled cleaning.  Also, if scheduling cleaning is so much more dangerous, why does Piriform include instructions on the web site on how to schedule cleaning?  The suggestion is just to make scheduling cleaning a little bit easier to set up.  Appropriate warnings could be included to insure that people are aware of the potential for problems, if Piriform thinks that is necessary.

#16 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 29 August 2012 - 06:13 PM

View Postmdjonson, on 29 August 2012 - 05:23 PM, said:

if scheduling cleaning is so much more dangerous, why does Piriform include instructions on the web site on how to schedule cleaning?

+ 99

I agree.

#17 OFFLINE   Alan_B

Alan_B

    Super Hero

  • Members
  • PipPipPipPipPip
  • 3,500 posts
  • Gender:Male
  • Location:Lancashire, England

Posted 30 August 2012 - 03:14 AM

View Postmdjonson, on 29 August 2012 - 05:23 PM, said:

Anyway, it seems to me that the arguments above against scheduled cleaning should apply equally to manual cleaning - who is going to know what files a particular installation needs or where they are located?  If you don't reboot when needed, a manual cleaning is likely to be as dangerous as a scheduled cleaning.
If the user is told to reboot after an installation then it is HIS responsibility if he disregards instruction and does his own thing.

Manual cleaning is NOT as dangerous as scheduled cleaning because when a user is running any M.S. or third party "Office" type software and editing / updating documents,
he is unlikely to pause and launch CCleaner and lose the temporary auto-backup files that might still be needed for an UNDO operation.
Scheduled cleaning however may strike out those auto-backup files regardless of whether they might still be needed.

#18 OFFLINE   mdjonson

mdjonson

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 31 August 2012 - 02:37 PM

View PostAlan_B, on 30 August 2012 - 03:14 AM, said:


Manual cleaning is NOT as dangerous as scheduled cleaning because when a user is running any M.S. or third party "Office" type software and editing / updating documents,
he is unlikely to pause and launch CCleaner and lose the temporary auto-backup files that might still be needed for an UNDO operation.
Scheduled cleaning however may strike out those auto-backup files regardless of whether they might still be needed.

Well, it doesn't have to be this way.  Look at Microsoft Security Essentials' settings - there is a setting for "Start the scheduled scan only when my PC is on but not in use."  I see no reason why a scheduler can't incorporate similar logic but without the option to turn this off, or with an option but with appropriate warnings.  I don't know how much work would be involved, however, and since I can accomplish what I want without a built-in scheduler, it may be a moot point.

#19 OFFLINE   Alan_B

Alan_B

    Super Hero

  • Members
  • PipPipPipPipPip
  • 3,500 posts
  • Gender:Male
  • Location:Lancashire, England

Posted 31 August 2012 - 03:17 PM

View Postmdjonson, on 31 August 2012 - 02:37 PM, said:

Well, it doesn't have to be this way.  Look at Microsoft Security Essentials' settings - there is a setting for "Start the scheduled scan only when my PC is on but not in use."  I see no reason why a scheduler can't incorporate similar logic but without the option to turn this off
To do this would probably require CC to run in the background to monitor and determine when the P.C. is not in use.

#20 OFFLINE   Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 01 September 2012 - 11:45 AM

View PostAlan_B, on 31 August 2012 - 03:17 PM, said:

To do this would probably require CC to run in the background to monitor and determine when the P.C. is not in use.

Maybe it depends on what the conditions & rules are.
I.E. after 5 min of inactivity, etc., perhaps Windows could handle that?

At any rate, manual scheduler setup is possible, complete with helpful instructions. Why not just make it simpler to implement? :)