up vote 4 down vote favorite
share [g+] share [fb]

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

link|improve this question

57% accept rate
feedback

2 Answers

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.
link|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
feedback

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.

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

Your Answer

 
or
required, but never shown

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