Task Scheduler To Automate CCleaner ?
#1 OFFLINE
Posted 01 August 2009 - 03:13 PM
There are three parameters you can use when running CCleaner, as follows. You can use them in batch files, scripting, shortcuts, or the Task Scheduler to automate CCleaner operation. For example, you could set CCleaner to run automatically every day at 3:00am.
CCleaner.exe /AUTO CCleaner runs silently and automatically, using the current set of saved options to clean the PC. CCleaner then exits.
#2 OFFLINE
Posted 03 August 2009 - 11:28 AM
#3 OFFLINE
Posted 03 August 2009 - 11:46 AM
If you installed it it to its default location then you may find it in C:\Program Files\CCleaner\ccleaner.exe
That being the case the program/file to execute in task scheduler would be:
C:\Program Files\CCleaner\ccleaner.exe /auto
#4 OFFLINE
Posted 04 August 2009 - 01:31 AM
Disk4mat, on Aug 3 2009, 07:46 AM, said:
C:\Program Files\CCleaner\ccleaner.exe /auto
Thanks for your help, but I'm not there yet.
When I click on Computer\C:\Program Files\CCleaner, I get several files, none of which say ccleaner.exe, the closest I get are files that end with the suffix dll, or ocx, none end in exe.
So, I right clicked the CCleaner shortcut icon on my desktop, clicked Properties, and found the following under the Shortcut tab:
Target: "C:\Program Files\CCleaner\ccleaner.exe"
Start In: "C:\Program Files\CCleaner"
At least I found something that ends in exe this time.
Why can't I find a file that ends in exe in the CCleaner program file? Now what do I do? From Shortcut Properties, do I have to change the Target, or Start In, or both, from what's already there to C:\Program Files\CCleaner\ccleaner.exe /auto? Or can I make all the changes in the Task Scheduler? And by the way, I have been successful in scheduling other tasks to run at night, like Norton Security, and HP Health Check, so I think that I know how to operate Task Scheduler.
I'm just really dense when it comes to computer literacy. I really need things spelled out one step at a time. I hope someone can help me with this, because I would really like CCleaner to run every night when I run all my other maintenance, and security, programs.
Further help would be greatly appreciated.
#5 OFFLINE
Posted 04 August 2009 - 02:07 AM
Are you running XP or Vista?
#6 OFFLINE
Posted 04 August 2009 - 11:43 AM
Disk4mat, on Aug 3 2009, 10:07 PM, said:
Thanks for the reply. So it appears that it's alright that I don't find the exe file in the Programs file. That's good news because I've spent a lot of time trying to find this exe file, with no success, except with the recent discovery of the exe file on the Shortcut/Properties screen.
I'm using Windows Vista.
So what's my next step? What's the "Switch" that is mentioned above? Do I have to add the / AUTO code to something? If so what do I add it to? To something in the Shortcut/Properties screen? And if so, do I add it to the Target, or the Start In, or both? Or do I go in a different direction and work with changing something in Task Scheduler?
When I found the following on the CCleaner help page, "You can use ... the Task Scheduler to automate CCleaner operation. For example, you could set CCleaner to run automatically every day at 3:00am", and then found, "CCleaner.exe /AUTO: CCleaner runs silently and automatically, using the current set of saved options to clean the PC. CCleaner then exits", I thought that this would be a good option instead of running CCleaner manually when I remember to do it. I never thought that this would turn out to be so difficult. I feel like such an idiot.
I look forward to some more advice from this forum, so that I can set this automatic task soon. Thanks agian.
#7 OFFLINE
Posted 04 August 2009 - 01:04 PM
Manual instructions
Open Task Sched and goto the Action menu. Select create task.
In the new task dialog, check the box to run the task with the highest privileges.
Triggers tab, new. Set for daily and time.
Actions tab, new. Enter the path for CC with " " so it would be
"C:\Program Files\CCleaner\CCleaner.exe"In the Arguments box type /Auto
Conditions and Settings tabs you can leave as default.
Right click, save as...
CCleaner.xml 3.49K
13 downloadsOr in a zip file. Extract the XML and import it
CCleaner.zip 1.04K
8 downloads Screenshots
1.PNG 46.15K
62 downloads
2.PNG 73.25K
29 downloads
3.PNG 61.62K
16 downloads
#8 OFFLINE
Posted 05 August 2009 - 11:50 PM
Disk4mat, on Aug 4 2009, 09:04 AM, said:
Manual instructions
Open Task Sched and goto the Action menu. Select create task.
In the new task dialog, check the box to run the task with the highest privileges.
Triggers tab, new. Set for daily and time.
Actions tab, new. Enter the path for CC with " " so it would be
"C:\Program Files\CCleaner\CCleaner.exe"In the Arguments box type /Auto
Conditions and Settings tabs you can leave as default.
Right click, save as...
Or in a zip file. Extract the XML and import it
Almost, but almost only counts in horseshoes and hand grenades.
I got up this morning to find the CCleaner screen on my computer, but with nobody available to click "Run Cleaner" at 5:00 a.m., of course, nothing got cleaned.
I used the manual method (from above). Here's what I did:
1) Opened up Task Scheduler
2) Clicked on Action, Clicked on Create Task
3) Under General tab, checked Run with highest privileges, typed in Name (CCleaner), Description (CCleaner), and clicked OK
4) It asked for an Action, Clicked New, Under Program/Script, I typed in "C:\Program Files\CCleaner\CCleaner.exe". In Add arguments (optional) I typed in AUTO, Clicked OK
5) Clicked Triggers tab, New, Checked Daily, Changed Time to 5:00 a.m., Clicked OK
6) Everything else was left as default
Now that I've gone over the steps in this post, I realized that I typed in AUTO, instead of /AUTO after Add arguments. Maybe with this change, i.e. with the slash, it will work tonight. I'll let you know tomorrow. But just in case it doesn't work, have I missed any steps in the six steps above that I listed?
Also, I couldn't enlarge the screenshots. And I couldn't open the xml file. I could open the zip file, but I had no idea what to do with it. I didn't think I needed it if I used the manual method?
I feel so ignorant. Thanks for all the help.
#9 OFFLINE
Posted 06 August 2009 - 01:55 AM
Oddly I cant open the screenshots either. Maybe its a forum issue. Here is one of the screens hosted on an image site...
http://img40.imagesh...5/tasksched.jpg
#10 ONLINE
Posted 06 August 2009 - 06:24 AM
May be a combination of forum software/and or firefox.
http://www.piriform.com/docs
#11 OFFLINE
Posted 06 August 2009 - 08:46 AM
Also I can right click the thumb, copy the address, remove the _thumb and view the image just fine. Example...
From: http://forum.piriform.com/uploads/monthly_08_2009/post-15598-1249390966_thumb.png To: http://forum.piriform.com/uploads/monthly_08_2009/post-15598-1249390966.png
I've also tried copying the shortcut and pasting it into a blank tab to rule out the popup blocker. Really odd.
#12 OFFLINE
Posted 06 August 2009 - 09:07 AM
wmckernan, on Aug 5 2009, 11:50 PM, said:
I can only think of two explanations for that :-
1. You launched CCleaner and it was left on the screen when you went to bed ; or
2. You have perfectly configured the scheduler to launch CCleaner,
and you need not make any changes other than inserting that missing "/".
Alan
#13 OFFLINE
Posted 06 August 2009 - 11:45 AM
I had one problem this morning, that was, probably, independent of my automatic CCleaner task. I awoke to find my internet connection down, but easily fixed it by turning my modem off, and then on. This never happened before, and, hopefully, it won't happen again.
Thanks for all the help. Special thanks to Disk4mat, and hazelnut.
#14 OFFLINE
Posted 07 August 2009 - 11:12 AM
#15 OFFLINE
Posted 07 August 2009 - 12:24 PM
#16 OFFLINE
Posted 08 August 2009 - 12:05 AM
CCleaner And Task Scheduler: CCleaner runs silently and automatically, using the current set of saved options to clean the PC. CCleaner then exits.
1) Open up Task Scheduler
2) Click on Action, Click on Create Task
3) Under General tab, Check Run with highest privileges, Type in Name: CCleaner AUTO,
Type in Description: CCleaner AUTO, Click OK
4) Under Actions tab, Click New, Under Program/Script, Type in:
"C:\Program Files\CCleaner\CCleaner.exe"(be sure to include the quotation marks),
In Add arguments (optional), Type in /AUTO (be sure to include the slash), Click OK
5) Click Triggers tab, New, Check Daily, Change Time to 5:00 a.m. (or whatever time you prefer),
Click OK
6) Conditions, Settings, and History tabs: Leave everything as default
7) Note: When you run CCleaner.exe using the /AUTO parameter, CCleaner does not run
the Registry cleaner. You cannot currently run the Registry cleaner through a command-line
parameter.
#17 ONLINE
Posted 08 August 2009 - 05:33 AM
I'm sure it will be found useful
http://www.piriform.com/docs
#18 OFFLINE
Posted 27 March 2010 - 04:28 PM
Disk4mat, on Aug 4 2009, 08:04 AM, said:
Manual instructions
Open Task Sched and goto the Action menu. Select create task.
In the new task dialog, check the box to run the task with the highest privileges.
Triggers tab, new. Set for daily and time.
Actions tab, new. Enter the path for CC with " " so it would be
"C:\Program Files\CCleaner\CCleaner.exe"In the Arguments box type /Auto
Conditions and Settings tabs you can leave as default.
Right click, save as...
Or in a zip file. Extract the XML and import it
Screenshots
#19 OFFLINE
Posted 27 March 2010 - 04:32 PM
Attached Files
#20 OFFLINE
Posted 19 December 2011 - 01:25 PM











