|
Windows Tip> One
Click Shutdown and Restart
The
following procedure will create an icon which will save you the extra
few clicks when shutting down or restarting your computer. The Restart
command is especially useful if your computer does not have a reset
button at all.
RunDLL (16-bit) and RunDLL32 (32-bit) are
command-line utilities that allow you to invoke a function exported from
a DLL, either 16-bit or 32-bit. Normally, only programmers have access
to DLLs. But you can write a function that can be triggered using
RUNDLL32, particularly helpful for running commands like those below.
One-click shutdown
- On the desktop, right-click and go to
New, then to Shortcut. (In other words, create a new shortcut.) Then on
the Command line type (or copy and paste it):
C:\windows\rundll.exe
user.exe,exitwindows
- If the C: drive is not your local hard
drive, then replace C with the correct letter of the hard drive.
- Now whenever you want to shut down, just
click on this shortcut and you're done. Also, if you want to make life
better and faster, you can right-click the new shortcut you just made,
go to Properties, and type in X (or whatever letter) in the Shortcut Key
box.
One-click restart:
Same as above except the command line:
On the desktop, right-click and select
New, then Shortcut. (In other words, create a new shortcut.) Then on
the Command line type (or copy and paste it):
C:\windows\rundll.exe
user.exe,exitwindowsexec
If the C: drive is not your local drive,
replace C with the correct letter of the hard drive. That's all. For
even better functions, you could also create a shortcut key under the
Properties of the shortcut you just made. That's all folks!
Other Useful Commands:
- Fast restart that will close
all programs and prompt you to log in again:
rundll32.exe
shell32.dll,SHExitWindowsEx
- Total reboot:
rundll32.exe
shell32.dll,SHExitWindowsEx 2
- Total shutdown:
rundll32.exe
shell32.dll,SHExitWindowsEx 5
Remember, these DLLs were not meant to be
tinkered with by the user, so use extreme caution and back up before you
do anything.
|