Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .