How to create shortcuts for shutdown, restart and hibernate in windows xp.

Have you ever wanted, To create shortcuts for the most common actions like shutdown, hibernate or restart on your desktop, so that you could fire up all these commands just by clicking a shortcut placed on your desktop.

All the operations shutdown, restart are nothing but a simple execution command for the system exe called shutdown.exe but with different parameter.

But this is not the same case with hibernate as it is a suspended state off in case of windows xp and it has nothing to do with shutdown.exe

Now, How to create shortcuts for shutdown, restart and hibernate.

1. Right Click on your Desktop, go to New>>shortcut.

2. Now for creating respective shortcut copy the commands given below.

Shutdown

SHUTDOWN -s -t 01

Restart

SHUTDOWN -r -t 01

Hibernate

rundll32.exe PowrProf.dll, SetSuspendState

3. Click next and then finish(You can change the icon to make these shortcuts more meaningful.

Well this is a very simple trick for windows xp users but again useful ,so if you like to say anything please leave a  comment here.

Comments

  1. W. A. Shapiro says

    I knew about shutdown.exe, but couldn’t figure out how to create a hibernation shortcut. Your tip is welcome. Too bad it seem that SetSuspendState appears to have no switches and there is apparently no way to abort the hibernation. With shutdown.exe, I set a 5-second delay and have another shortcut to the program, that one with the -a flag, which stops the shutdown or restart.

  2. Neil says

    Thanks – I had these in a trial Tweak-7 app, but they were deleted when I uninstalled (trial ran out).

  3. Praveen says

    shortcur for hibernation is good. Is there any way to code, so that the system asks the user for confirmation?

    Can anyone help on this.

  4. PC tricks says

    Im using these shortcuts, and do you know how to change icon for hibernate shortcut?

Leave a Reply

Your email address will not be published. Required fields are marked *