[4.09.4471] /SHUTDOWN command-line parameter

CCleaner 4.09.4471 (19 Dec 2013)

Windows 7 (32-bit)

Please fix (or bring back) the "/SHUTDOWN" command-line parameter. I don't know if it was an intentional decision to remove the /SHUTDOWN parameter or is an unintentional bug from the inclusion of that checkbox in the GUI to shutdown after running CCleaner.

While your changelog indicates that you've included an option to shutdown after cleaning many people rely on batch/powershell scripts to handle automated tasks. There are times where it's nice to launch CCleaner with just /AUTO (without shutting down) but at the end of the day, I like to launch it with /AUTO /SHUTDOWN. With this newest build, my only option is to check "Shutdown after cleaning" and only run CCleaner at the end of the day since you've forced me into an all-or-nothing approach. :( Please bring back the flexibility of using the /SHUTDOWN command-line parameter.

Steps to reproduce:

1) Open CCleaner and make sure "Shutdown after cleaning" is UNCHECKED.

2) Close out of CCleaner completely.

3) Open up cmd.exe and type: "%ProgramFiles%\CCleaner\CCleaner.exe" /AUTO /SHUTDOWN

Intended result:

CCleaner will run and clean all traces I have specified AND shutdown afterwards.

Actual result:

CCleaner will run and clean all traces I have specified.

I've confirmed your findings. They seem to have removed the command for it in favor of doing it from the GUI.

+1 for the return of cmd line switch

Hi, thanks for letting us know. Will look into this :)

Same problem here on my Window 7 Ultimate 64-bit:

My desktop shortcut [T:\Progs\CCleaner\CCleaner64.exe /AUTO /SHUTDOWN]

only performs the first part "cleaning all found issues" according to parameter "/AUTO",

but the wanted second part "shutdown after cleaning" does _not_ work anymore

in CCleaner's latest version 4.9.0.4471 (earler versions were ok).

Please fix this asap!

Sincerly

pirat

Thanks for the reply.

For future posters, no need for "me too" posts, this bug has been officially recognized, and this feature was mistakenly broken, however I would not expect a fix until the next scheduded release as this isn't a fatal bug which necessitates a separate release to fix (although never say never).

Just my 2 cents, I always use the shutdown feature using a Windows shortcut along with some custom VbScript. (A neat little prompt...) Please restore this feature. It was very helpful and my friends depend on it. :rolleyes:

Here's a suggestion that works for me. I too rely on the shutdown feature, but cannot enable it fuilltime in the settings as sometimes I like to run it without shutting down. Like you all I am sure.

For now.... I installed two copies, one to program files\ccleaner and another to program files\ccleaner2. In settings for both, I set the settings to be saved to an .ini file since it's saved in the working folder. For one version I have the shutdown feature in settings unchecked and in the other, it's checked. I then run a desktop/taskbar shortcut pointed towards the second copy (ccleaner2 folder) where the shutdown feature is enabled. Seems to work for me.

As I stated, it was a bug that caused the line was removed, please be patient as it will (with 99% likelihood) return in the january release of ccleaner (or feb as the one just released might actually be considered January's)

... please be patient as it will (with 99% likelihood) return in the january release of ccleaner (or feb ...

By the time February rolls around, I'll have a workaround in place. Instead of my desktop shortcut calling ccleaner with the /shutdown option, it will call a command file that first calls ccleaner, and then the windows shutdown command. So don't trouble yourself on my part.

Microsoft Windows [Version 6.1.7601]

Copyright © 2009 Microsoft Corporation. All rights reserved.

c:\users\mgm>shutdown /?

Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]

[/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

No args Display help. This is the same as typing /?.

/? Display help. This is the same as not typing any options.

/i Display the graphical user interface (GUI).

This must be the first option.

/l Log off. This cannot be used with /m or /d options.

/s Shutdown the computer.

/r Shutdown and restart the computer.

/g Shutdown and restart the computer. After the system is

rebooted, restart any registered applications.

/a Abort a system shutdown.

This can only be used during the time-out period.

/p Turn off the local computer with no time-out or warning.

Can be used with /d and /f options.

/h Hibernate the local computer.

Can be used with the /f option.

/e Document the reason for an unexpected shutdown of a computer.

/m \\computer Specify the target computer.

/t xxx Set the time-out period before shutdown to xxx seconds.

The valid range is 0-315360000 (10 years), with a default of 30.

If the timeout period is greater than 0, the /f parameter is

implied.

/c "comment" Comment on the reason for the restart or shutdown.

Maximum of 512 characters allowed.

/f Force running applications to close without forewarning users.

The /f parameter is implied when a value greater than 0 is

specified for the /t parameter.

/d [p|u:]xx:yy Provide the reason for the restart or shutdown.

p indicates that the restart or shutdown is planned.

u indicates that the reason is user defined.

If neither p nor u is specified the restart or shutdown is

unplanned.

xx is the major reason number (positive integer less than 256).

yy is the minor reason number (positive integer less than 65536).