In this tutorial we are going to see how we can create shortcuts in our Windows with which we can turn off, restart, hibernate or suspend our operating system simply by double clicking on them.
First of all, we create a shortcut to execute the command we want. To do this, right-click on an empty area of the desktop and select the option «new” Y “direct access«:
We write the command what we want run, depending on whether we want suspend, hibernate, shutdown or reboot the system:
- For suspend the system: C: WindowsSystem32Rundll32.exe powrprof.dll, SetSuspendState
- For hibernate the system: C: WindowsSystem32shutdown.exe / h
- To shut down the system: C: WindowsSystem32shutdown.exe -s -t 00
- For reboot the system: C: WindowsSystem32shutdown.exe -r -t 00
We write the name of the shortcut (in this case, «hibernate«):
We would click on “finish” and it would create the shortcut on our desktop, through which we can now hibernate the system:
Now when we double click our computer will automatically shut down.