CC does not respect script WAIT requests

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

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

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"

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.

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