Jump to content
CCleaner Community Forums
YupoWert

CC does not respect script WAIT requests

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

 

 

 

 

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

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...

×
×
  • Create New...