Sponsor for PC Pals Forum

Author Topic: One Click Shutdown  (Read 736 times)

Offline Simon

  • Administrator
  • *****
  • Posts: 77112
  • First to score 7/7 in Quiz of The Week's News 2017
One Click Shutdown
« on: September 07, 2004, 09:40 »
Here one you may know already, but I find really handy.  You can create a button on your desktop (In WinXP) to shutdown your PC in one click:-

Begin by right clicking on the Desktop, select New from the Context Menu, then Shortcut. Click on the Browse button and navigate to the file C:\Windows\System32\Shutdown.exe and select it. Click on the Next button, name the shortcut and click Finish. Now you need to right click the new shortcut and choose Properties from the Context Menu. In the box labelled Target, add one of the following letters, depending upon what you want the shortcut to do:

-l (that's the small letter L, standing for Log off)
-s (the small letter S, standing for Shut down)
-r (the small letter R, standing for Restart, or Reboot.)

The command line should then look like this:-  

C:\Windows\System32\Shutdown.exe -s
or
C:\Windows\System32\Shutdown.exe -l
or
C:\Windows\System32\Shutdown.exe -r

Hope that's useful to someone.
Many thanks to all our members, who have made PC Pals such an outstanding success!   :thumb:

Offline Hiatus

  • Regular Member
  • **
  • Posts: 193
    • JoshSalverda.com
Re:One Click Shutdown
« Reply #1 on: September 09, 2004, 06:40 »
Quote
You can create a button on your desktop (In WinXP to shutdown your PC in one click:


To do this in 98/ME...

-Right click desktop
-Go to New > Shortcut
-Type: C:\WINDOWS\RUNDLL32.EXE SHELL32.DLL,SHExitWindowsEx X

"X" being one of the following:

0= Log off
1= Shut down
2= Restart Windows
4= Force all running processes to terminate
8= Exits Windows, then turns off the computer?s power (If power-off is supported by the computer).
-1= Restart Explorer

-Click "Next", type a name for your shortcut
-You're done! Enjoy being able to restart your computer with a button! It won't help if Explorer freezes, but meh!
l33t h@x0r... sort of...


Show unread posts since last visit.
Sponsor for PC Pals Forum