Jump to content

CC does not respect script WAIT requests


YupoWert

Recommended Posts

Hi,

 

CC 4.09 is no longer correctly allowing scripts to identify when CC closes - whether manually or during an AUTO clean operation - I don't know when this behaviour changed.

 

This is absolutely required for automated scripting, especially for logoff scripts.

 

2 examples of Windows 7 scripts which are broken by CC

 

CC.BAT

cd "c:\program files\ccleaner"

start /wait ccleaner.exe /auto

rem the next line should only execute after CC completes and closes

echo Finished

 

CC.VBS

Set objShell = WScript.CreateObject("WScript.Shell")

Return = objShell.Run ("""C:\Program Files\CCleaner\CCleaner.exe""" & " /AUTO" , 1, TRUE)

' the next line should only execute after CC completes and closes

WScript.Echo "Finished"

 

Both of these example logoff scripts are now broken, as they cannot delay the logoff process of the OS, preventing the OS terminating CC before it has a chance to complete the AUTO clean. With CC not allowing scripts to identify when it has completed, any form of automated use of CC within scripts is impossible.

 

I hope that these example scripts allow you to reproduce and remove this important bug in CC's behaviour.

Many thanks

Ti

 

 

 

 

 

Link to comment
Share on other sites

Hi YuooWert,

 

We were not able to reproduce this problem with v4.09.4471.

 

Are you running this on a 64-bit W7? If so, do you have CCleaner64.exe on the same folder?

 

When CCleaner64.exe is present, the initial call to CCleaner.exe is terminated to run the 64-bit version.

 

Please let us know

 

Thanks

 

MrT

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

 

I was using v4.09.4471 when the same problem occured.

I just upgraded to v4.10.4570 and the same problem still exists ( using WIndows 7 32-bit ).

The script I used :

Set objShell = CreateObject("Wscript.Shell")
objShell.CurrentDirectory = "C:\Program Files\CCleaner"
objShell.Run "CCleaner.exe /AUTO", 7, True
wscript.echo "This should not be executed before CCleaner closed"
Link to comment
Share on other sites

Hi,

 

CC 4.09 is no longer correctly allowing scripts to identify when CC closes - whether manually or during an AUTO clean operation - I don't know when this behaviour changed.

 

This is absolutely required for automated scripting, especially for logoff scripts.

 

2 examples of Windows 7 scripts which are broken by CC

 

CC.BAT

cd "c:\program files\ccleaner"

start /wait ccleaner.exe /auto

rem the next line should only execute after CC completes and closes

echo Finished

 

CC.VBS

Set objShell = WScript.CreateObject("WScript.Shell")

Return = objShell.Run ("""C:\Program Files\CCleaner\CCleaner.exe""" & " /AUTO" , 1, TRUE)

' the next line should only execute after CC completes and closes

WScript.Echo "Finished"

 

Both of these example logoff scripts are now broken, as they cannot delay the logoff process of the OS, preventing the OS terminating CC before it has a chance to complete the AUTO clean. With CC not allowing scripts to identify when it has completed, any form of automated use of CC within scripts is impossible.

 

I hope that these example scripts allow you to reproduce and remove this important bug in CC's behaviour.

Many thanks

Ti

If 64 bit OS chagne the ccleaner.exe to ccleaner64.exe.

 

Problem will be fixed.

Link to comment
Share on other sites

  • Moderators

I just upgraded to v4.10.4570 and the same problem still exists ( using WIndows 7 32-bit ).

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

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.