Jump to content

Chain CCleaner with Defraggler


Recommended Posts

Hi,

 

I've discovered that the best way to deal with Chrome's profligate ways is to use CCleaner to clean and then shutdown the system automatically at day's end. It's working beautifully, and with the right settings, once the routine settles in it doesn't take much time at all to complete.

 

I was thinking that it would be nice to be able to chain CC with Defraggler, and then allow Defraggler the shutdown rights. I think this could be done manually with a .bat file if CCleaner could be set to shut itself down after completion, so the .bat file could wait for CC to close and then pick up again and fire DF. But I'm not aware of that CC option.

 

So what I'm thinking about is some way to do this via the CC interface, either to merely shut itself down or to actually fire DF.

 

 

Separately, please consider providing a direct link to this helpful forum on the site's front page.

 

Thanks much for some very helpful software.

 

Be blessed,

p.

Link to comment
Share on other sites

I was thinking that it would be nice to be able to chain CC with Defraggler, and then allow Defraggler the shutdown rights. I think this could be done manually with a .bat file if CCleaner could be set to shut itself down after completion, so the .bat file could wait for CC to close and then pick up again and fire DF. But I'm not aware of that CC option.

 

I shut-down with a BAT file that invokes

CCLEANER /AUTO /SHUTDOWN

 

Another good way which uses Windows shutdown.exe command is

CCLEANER /AUTO
SHUTDOWN -s -t 5

 

I have no experience of Defraggler, but perhaps you could try

CCLEANER /AUTO
DEFRAGGLER
SHUTDOWN -s -t 5

 

Regards

Alan

Link to comment
Share on other sites

Alan, this is interesting. I thought that processes initiated by the batch were external to its own processing unless the start /wait switch was used, and even with that switch I thought the called process would have to end before the batch picked up again.

 

But I just tried a simple:

 

 

c:\systools\ccleaner\ccleaner.exe /auto

c:\utilities\metapad\metapad.exe

 

as a test and it seemed to work. I can't tell for sure until I allow Chrome to amass a larger cache, but CC seemed to invoke, work a minute, and then close, allowing metapad to open.

 

Ok, I just tested ccleaner /auto, and it indeed shuts itself down upon finishing. So that leg of the problem is solved. Now, the other leg, the batch keeping processing flow internal, is also solved, but I don't know why. But in any case, this should work, with Defraggler with its shutdown switch set.

 

Thanks, I'll confirm tomorrow whether it worked.

 

p.

Link to comment
Share on other sites

Ok, the batch file definitely pauses and waits until each called process terminates. I've got ccleaner working well with the /auto switch, after which it self-terminates. Everything should be good, but the problem is df.exe doesn't do anything. I've got a bug report in over on the other subforum.

 

p.

Link to comment
Share on other sites

  • 2 weeks later...

Ok, the batch file definitely pauses and waits until each called process terminates. I've got ccleaner working well with the /auto switch, after which it self-terminates. Everything should be good, but the problem is df.exe doesn't do anything. I've got a bug report in over on the other subforum.

 

p.

 

It might be something simple like quotes on your batch file not working, try using a full path name

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.