Do this.
by Mendieta - 7/24/05 2:48 AM
In Reply to: shortcut for shut down by alderessy
C:\WINDOWS\RUNDLL32.EXE user.exe,exitwindows
C:\WINDOWS\SYSTEM32\RUNDLL32.EXE user.exe,exitwindows
It depends of what Windows version your computer has installed.
The tip in question, from the July 1998 Windows Tips, illustrated how a command line for exiting and restarting Windows eliminates those bothersome confirmation prompts. It also allows automation via the Task Scheduler and makes it possible to create keyboard shortcuts for these common operations. With Windows 98, you can take this shortcut further by using various commands to exit or restart Windows without rebooting, or to reboot the system. This procedure won't work in Windows NT or 2000.
To create a shortcut for exiting Windows 9x, navigate to the folder the shortcut will be stored in. If you would like the commands to be available on the Start menu, right-click the Start button and choose Open. Then right-click the desired folder window and choose New, Shortcut. In the command-line box, type rundll.exe user.exe,exitwindows to create a shortcut that exits Windows (Windows 9x and Windows Me) or rundll.exe user.exe,exitwindowsexec to create a shortcut that restarts Windows without rebooting (Windows 9x only). Click Next, type a name for your icon, and click Finish. You can customize this feature even further by Alt-double-clicking the icon to display its Properties. Then click the Shortcut tab (if needed), and use the Shortcut key box to type a keyboard shortcut; or you can click the Change Icon button to select a new appearance for the shortcut icon. Click OK as many times as necessary to close all the open dialog boxes. If you have any difficulty getting the restart command to function, open the shortcut's Properties box and type a space followed by a 0 or a 1 at the end of the Target line.
In Windows 98 or Windows Me, you can create an icon that reboots the system (as opposed to merely restarting Windows) or that logs off the current account. Follow the same steps as above, but type this command line: rundll32.exe shell32.dll, SHExitWindowsEx 2 (it's case-sensitive, so watch capitalization following the comma). The ''2'' parameter causes a reboot. If you change it to 0, you will log off and on with a different account, and if you change it to 1, you'll get the ''exit Windows'' command explained above.
Was this reply helpful? (0) (0)
Staff pick