Jump to content
CCleaner Community Forums
Sign in to follow this  
djmccartney

Clean on Exit

Recommended Posts

How about a "Clean on Exit" instead of or in addition to, "Clean on Startup". This would speed-up boot-up.

 

Perhaps this isn't possible technically. Any thoughts?

Share this post


Link to post
Share on other sites

Hi djmccartney,

 

Indeed it is possible to have CCleaner run at user logoff but this is not included as an application feature, rather you have to call CCleaner during logoff.

 

The way I acomplish this is by adding a logoff script to the local group policy on the system (this assumes you use Windows 2000 or above).

 

The vbs code I use is below:

 

Dim WshShellSet WshShell = Wscript.CreateObject("Wscript.Shell")strCmd = ("ccleaner.exe /auto")WshShell.CurrentDirectory = "C:\Program Files\CCleaner"WshShell.Run strCmd,1,TRUE

 

And of course you can just call "ccleaner.exe /auto" in a batch file and add that as your logoff script if you do not want to use vbs as I have done (I much prefer to use vbs but it's totally unnecessary for something this simple!).

 

For information on logoff scripts go here.

 

HTH

Share this post


Link to post
Share on other sites

Thanks for the suggestions!

 

Dave

 

 

Hi djmccartney,

 

Indeed it is possible to have CCleaner run at user logoff but this is not included as an application feature, rather you have to call CCleaner during logoff.

 

The way I acomplish this is by adding a logoff script to the local group policy on the system (this assumes you use Windows 2000 or above).

 

The vbs code I use is below:

 

Dim WshShellSet WshShell = Wscript.CreateObject("Wscript.Shell")strCmd = ("ccleaner.exe /auto")WshShell.CurrentDirectory = "C:\Program Files\CCleaner"WshShell.Run strCmd,1,TRUE

 

And of course you can just call "ccleaner.exe /auto" in a batch file and add that as your logoff script if you do not want to use vbs as I have done (I much prefer to use vbs but it's totally unnecessary for something this simple!).

 

For information on logoff scripts go here.

 

HTH

 

23266[/snapback]

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...