Windows 8 system starts to add shutdown button tutorial

  
                                    

For those who don't want to use third-party software to add the shutdown/restart/logout button for Windows 8 modifications, here's a good way to do it. We can DIY a own shutdown button. The steps are quite simple!

First, we create a new shortcut on the desktop

and then enter the corresponding command. Next

Such a shortcut is created, egg We found that this icon is not very satisfactory, so we changed the corresponding icon.

The corresponding icon can be found and modified in the system, or you can download it yourself on the network. I have found a few more beautiful ones.

Click Browse to select the icon file path

Then the shortcut becomes like this

After we have made all the shortcuts. Copy it to the Start menu. (This requires administrator privileges.) How do I get this?

The path to the Start menu: C:ProgramDataMicrosoftWindowsStart MenuPrograms, of course, if your system disk is not a C drive, Just change the C in front of it.

To find the way to start the menu path, right-click on the shortcut to select a desktop program and select Open File Location.

Then find our shortcut on the far right of the start interface and regroup the shortcuts (left click on the sticker and drag to the right for a certain distance until a white line appears. >

Finally, this is the way

Finally, we click on the minus sign in the lower right corner (press CTRL+mouse wheel), shrink the entire interface, and move the tile group to the end of a group. I put the desktop on it. Then it became like this.

Then everything is done.

Let me share some information.

About shortcuts Location

Shutdown: shutdown.exe -s -t 00 -hybrid

Restart: shutdown -r -t00

Lock: rundll32.exe user32.dll,LockWorkStation

Logout: shutdown.exe -l

Careful friends will find that there are sleep and sleep options in my start menu. Why didn't the start screen appear?

It’s a problem that has been bothering me for a long time, and it has not been solved very well.

First talk about these two commands

Sleep command: rundll32.exe powrprof.dll, SetSuspendState 0,1,0

Sleep command: shutdown -h

It seems that there is no conflict, but if you want to call the sleep command normally, you first need a statement to disable the hibernation function (this statement must also be run as an administrator), otherwise it will go to sleep instead of sleep, but if You disable hibernation, then the hibernate shortcut has no effect, so I wrote two batches

Hibernate

powercfg -hibernate on

Shutdown -h

Sleep

powercfg -hibernate off

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

When I put the shortcut When the path of the mode is changed to these two files, I found that the start program cannot be displayed. I concluded that the target file should be a non-exe executable program.

Copyright © Windows knowledge All Rights Reserved