Login

Login

Need to register? Lost password?

Options

Advertisements

Advertisements

 

windows xp shutdown dialog shortcut?

Hardware, Software & Internet

Minitokyo » Forum » Computers & Internet Fora » Hardware, Software & Internet  windows xp shutdown dialog shortcut?

page 1 of 1

is there a command line or shortcut i can use to bring up the shutdown dialog in windows xp?

click on the startbar background to deselect all the open windows then press alt f4.

XP also has a 'shutdown' command that can be used in shortcuts to logoff, reboot, shutdown, etc. shutdown -? will give you the options.

yeah, i want it to be like a shortcut, i want to put it in the menu in blackbox (shell replacement), and i want it to show the normal shutdown dialog that you get when normally choosing shutdown from the startmenu. after posting here i found one line that was supposed to work when you put it in a .js file, but it didn't. i'm not getting any errors when running it, but nothing happens >.<

the line was
(new ActiveXObject("Shell.Application")).ShutdownWindows();

i also found it (written with more lines, but the same thing) on microsoft msdn-something site, so it should be correct (tried the one with more lines as well). there was also a similar code snippet on the same page, but in vbs. i tried the same thing with that, put it in a .vbs file but nothing happens when i run it, no errors either...

am i doing something wrong or is my computer just being uncooperative?

Try "rundll32 msgina.dll,ShellShutdownDialog" on the command line. It should open at least some sort of a shutdown dialog...

shutdown -i or a

jusa! thank you! that was exactly what i was looking for! thank you!

page 1 of 1

Only members can post replies, please register.