YupoWert Posted January 18, 2014 Share Posted January 18, 2014 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 More sharing options...
Guest MrT Posted January 20, 2014 Share Posted January 20, 2014 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 More sharing options...
WellyHartanto Posted February 17, 2014 Share Posted February 17, 2014 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 More sharing options...
keithg Posted February 18, 2014 Share Posted February 18, 2014 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 More sharing options...
Moderators mta Posted February 18, 2014 Moderators Share Posted February 18, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now