Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running Windows XP with RocketDock.

I want to add a button/icon to my dock that acts in the same way as clicking the 'Turn Off Computer' button in the Start menu i.e. so it brings up the 'Standby, Turn off, Restart' dialogue box.

I currently have a button on my dock that turns off my computer and another one that restarts it but I just want one to bring up the 'Standby, Turn off, Restart' box so I have the usual choice (and can save a button at the same time).

share|improve this question

2 Answers 2

up vote 5 down vote accepted
  1. Open Notepad or any text editor you use.
  2. Copy the following single line to the text: (new ActiveXObject("Shell.Application")).ShutdownWindows();
  3. Save as "Shutdown.js" (without the quotes) anywhere you like on your computer.
  4. Create a new shortcut that points to Shutdown.js.
share|improve this answer
1  
That did it - thanks! Any other code snippets like this that do useful things in RocketDock? –  andygrunt Oct 17 '09 at 13:54
    
That's all I got :D –  C-Pound Guru Oct 17 '09 at 14:10
    
+1 for not using rundll32 for that. –  grawity Oct 18 '09 at 12:33

IF you download Wizmo at Steve Gibson's http://www.grc.com/wizmo/wizmo.htm site, you can get a lot of little things like Reboot and Shutdown routines. I use it's 'screen saver' too. All can be added to a RocketDock or any other app launcher.

share|improve this answer
    
Interesting - thanks. –  andygrunt Oct 17 '09 at 20:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.