Jump to content


Show Windows Shutdown Dialog instead of Shutting Down


4 replies to this topic

#1 OFFLINE   Citrus

    Member

  • Members
  • PipPip
  • 20 posts

Posted 27 March 2009 - 05:45 PM

I would really like for Ccleaner to bring up the Windows Shutdown dialog instead of just shutting down when using the /SHUTDOWN argument. This way I can choose to either shutdown, restart of log off my machine. This feature has already been in Webroot's Window Washer for a while.

#2 OFFLINE   kmillerusaf

    Advanced Member

  • Members
  • PipPipPip
  • 431 posts
  • Gender:Male
  • Location:South Carolina

Posted 27 March 2009 - 05:51 PM

I think this would be a very useful feature for some folks as well! Just my .02 cents ;)

Keith
There's always an exception to the rule. I'm that exception.

Desktop ----- AMD Athlon 3700+ (2.64Ghz), 2GB DDR 400, ASUS A8N-SLI Premium, 500GB HD, Windows XP Pro SP3, Avira Antivir Personal
At work ----- Intel C2D T1700 (1.6Ghz), 2GB DDR2 667, Dell OUY141, 80GB HD, Windows XP Pro SP2, Symantec 10
Laptop ----- Intel C2D P8400 (2.4 Ghz), 4GB DDR3 1066, Mainboard, 160GB HD, Dualboot: Windows 7/openSUSE 11.1, Avira Antivir Personal



#3 OFFLINE   Andavari

    Captain Spectacular

  • Moderators
  • 13,330 posts
  • Gender:Male
  • Location:Shadow Moses

Posted 27 March 2009 - 06:40 PM

People that want things automated would probably still want CC to just turn off their system. However it would be alright for non-automated shutdowns and perhaps should really have its very own unique switch to activate it, maybe /SHUTDOWN /PROMPT
Complexity of incoherent design.

#4 OFFLINE   NerdFencer

    Member

  • Members
  • PipPip
  • 15 posts

Posted 28 March 2009 - 04:18 PM

This could also be done with a /RESTART argument that could be used instead of /SHUTDOWN. If doing this, to make it complete, some users may also like a /STANDBY argument (as some users don't like to wait for the full boot time). This would be optimal because all the options would be available to the people who want it automated.

Of course, this would eliminate one advantage of the menu, that being the real-time selection. This advantage could be better leveraged with a custom menu for a /SDPROMPT option that would allow you to select which option before it runs so that you can then just walk away, giving you the advantages of both options (although slightly more time-consuming to implement).
Honestly though, I see little need for the real-time selection if the options are available by command line, the only exception being a computer savvy person setting up a batch file to do it for a not-so savvy person.

Call me a feature creep, but I also see why a user may also want the option of logging off, or switching users. This could be added to the custom menu or command line parameters easily, but not to the windows default Shutdown dialog.

None of these options should be difficult to implement, but I do think that the additional shutdown options would be a useful addition to the utility.

#5 OFFLINE   Citrus

    Member

  • Members
  • PipPip
  • 20 posts

Posted 29 March 2009 - 04:15 AM

Basically what needs to be changed from the code is replacing the automatic shutdown code with this one:
rundll32.exe msgina,ShellShutdownDialog

If you want to test it out, type that into Start > Run. It should bring up the Windows shutdown dialog.