How To Create Shutdown And Restart Buttons On Your Desktop

View previous topic View next topic Go down

default How To Create Shutdown And Restart Buttons On Your Desktop

Post by JOHN2x on Sat Aug 23, 2008 7:08 am

Code:
Want to be able to click a button on your desktop to shutdown your computer instead of having to click “Start -> Turn off Computer > Turn Off” every single time? All you have to do is create a shortcut on your desktop that points to shutdown.exe with the right switches.


Do a right click on your desktop and click new click on shortcut. In the Type the location of the item paste in one of these commands. Then click next. A shortcut is now on your desktop. Now do a right click on the shortcut and go to properties. Now click Change Icon. Pick whatever Icon you want it to look like


Shutdown command

%windir%\system32\shutdown.exe -f -s -t 0


Restart command

%windir%\system32\shutdown.exe -r -t 0


Create a Restart button:

It might seem a little strange but Windows XP and vista restarts using the same shutdown.exe file. To create a restart button follow the same steps above but use a -r switch instead of a -s switch. I have changed the commands for you so you will not have to do this. Change the name of the Icon to Restart.
avatar
JOHN2x
Loyal Member
Loyal  Member

Male Number of posts : 402
Age : 26
Location : IN YOUR MIND
Gfx Experience : The meaning of life is that it ends.
My Mood :
Points : 0
Registration date : 2008-07-29

View user profile

Back to top Go down

default Re: How To Create Shutdown And Restart Buttons On Your Desktop

Post by black_heart_pychzen029 on Thu Oct 02, 2008 8:27 am

wow nice thanks for sharing dude :D











NEy-|13|Ever




avatar
black_heart_pychzen029
Cbox moderator
Cbox  moderator

Male Number of posts : 571
Age : 28
Location : puert0 galera or. mind0ro
Job/hobbies : playing online game
Gfx Experience : CompuTeR-AdiKS Nd DeFence-of-the Ancient...*and* *online games*...
Points : 0
Registration date : 2008-08-14

View user profile http://codectors.niceboard.net/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum