Posted by member 202 on 2003-08-12 08:15:37 link

in xp and 2k you can do it using shutdown.exe command switches. bring up a command console and run 'shutdown.exe' for the usage.

in 9x, use the command (i'm on xp, so please somebody correct this if it's wrong)
RUNDLL32.EXE shell32 SHExitWindowsEx n

where n is one of the following:
0 = logoff
1 = shutdown
2 = restart
4 = forced
8 = power off


those commands can be bound to hotkeys, shortcuts, bangs, etc.